cvs: ZendEngine2 / zend_compile.c

From: Date: Sun, 03 Aug 2003 22:03:52 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1594@lists.php.net to get a copy of this message
helly Sun Aug 3 18:03:52 2003 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fix test and add missing initialization Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.453 ZendEngine2/zend_compile.c:1.454 --- ZendEngine2/zend_compile.c:1.453 Sun Aug 3 13:40:43 2003 +++ ZendEngine2/zend_compile.c Sun Aug 3 18:03:52 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.453 2003/08/03 17:40:43 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.454 2003/08/03 22:03:52 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -932,6 +932,7 @@ op_array.function_name = name; op_array.return_reference = return_reference; op_array.fn_flags = fn_flags; + op_array.pass_rest_by_reference = 0; op_array.scope = CG(active_class_entry); op_array.prototype = NULL; @@ -1606,7 +1607,15 @@ } for (i=0; i< fe->common.num_args; i++) { - if (strcmp(fe->common.arg_info[i].class_name, fe->common.prototype->common.arg_info[i].class_name)!=0) { + if (fe->common.arg_info[i].class_name) { + if (fe->common.prototype->common.arg_info[i].class_name) { + if (strcmp(fe->common.arg_info[i].class_name, fe->common.prototype->common.arg_info[i].class_name)!=0) { + return 0; + } + } else { + return 0; + } + } else if (fe->common.prototype->common.arg_info[i].class_name) { return 0; } if (fe->common.arg_info[i].pass_by_reference != fe->common.prototype->common.arg_info[i].pass_by_reference) {

« previous php.zend-engine.cvs (#1594) next »