cvs: ZendEngine2 / zend_compile.c

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

  Modified files:              
    /ZendEngine2	zend_compile.c 
  Log:
  Code simplification
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.809&r2=1.810&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.809 ZendEngine2/zend_compile.c:1.810
--- ZendEngine2/zend_compile.c:1.809	Wed Mar 12 10:32:39 2008
+++ ZendEngine2/zend_compile.c	Wed Mar 12 10:40:13 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_compile.c,v 1.809 2008/03/12 10:32:39 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.810 2008/03/12 10:40:13 dmitry Exp $ */
 
 #include <zend_language_parser.h>
 #include "zend.h"
@@ -1546,20 +1546,7 @@
 	Z_UNIVAL(function_name->u.constant) = lcname;
 	Z_UNILEN(function_name->u.constant) = lcname_len;
 
-	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.