cvs: ZendEngine2(PHP_5_3) / zend_compile.c

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1205318402@cvsserver>
dmitry		Wed Mar 12 10:40:02 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend_compile.c 
  Log:
  Code simplification
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.27.2.41.2.48&r2=1.647.2.27.2.41.2.49&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.48 ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.49
--- ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.48	Wed Mar 12 10:32:11 2008
+++ ZendEngine2/zend_compile.c	Wed Mar 12 10:40:02 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.48 2008/03/12 10:32:11 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.49 2008/03/12 10:40:02 dmitry Exp $ */
 
 #include <zend_language_parser.h>
 #include "zend.h"
@@ -1446,20 +1446,7 @@
 	efree(function_name->u.constant.value.str.val);
 	function_name->u.constant.value.str.val = lcname;
 	
-	switch (function->type) {
-		case ZEND_USER_FUNCTION:	{
-				zend_op_array *op_array = (zend_op_array *) function;
-
-				zend_stack_push(&CG(function_call_stack), (void *) &op_array, sizeof(zend_function *));
-			}
-			break;
-		case ZEND_INTERNAL_FUNCTION: {
-				zend_internal_function *internal_function = (zend_internal_function *) function;
-
-				zend_stack_push(&CG(function_call_stack), (void *) &internal_function, sizeof(zend_function *));
-			}
-			break;
-	}
+	zend_stack_push(&CG(function_call_stack), (void *) &function, sizeof(zend_function *));
 	zend_do_extended_fcall_begin(TSRMLS_C);
 	return 0;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.