cvs: ZendEngine2 / zend_compile.c

From: Date: Tue, 11 May 2004 14:28:40 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2631@lists.php.net to get a copy of this message
andi Tue May 11 10:28:40 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: - Don't allow passing NULL to type hinted parameter. http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.565&r2=1.566&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.565 ZendEngine2/zend_compile.c:1.566 --- ZendEngine2/zend_compile.c:1.565 Fri Apr 23 17:53:46 2004 +++ ZendEngine2/zend_compile.c Tue May 11 10:28:40 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.565 2004/04/23 21:53:46 andi Exp $ */ +/* $Id: zend_compile.c,v 1.566 2004/05/11 14:28:40 andi Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1138,6 +1138,7 @@ if (class_type->op_type != IS_UNUSED) { cur_arg_info->class_name = class_type->u.constant.value.str.val; cur_arg_info->class_name_len = class_type->u.constant.value.str.len; + cur_arg_info->allow_null = 0; } else { cur_arg_info->class_name = NULL; cur_arg_info->class_name_len = 0;

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