cvs: Zend(PHP_4_3) / zend_execute.c

From: Date: Tue, 03 May 2005 01:30:06 +0000
Subject: cvs: Zend(PHP_4_3) / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3634@lists.php.net to get a copy of this message
iliaa Mon May 2 21:30:06 2005 EDT Modified files: (Branch: PHP_4_3) /Zend zend_execute.c Log: MFZE2: Fixed bug #32670 (foreach() does not issue warning on unset array arg) http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.48&r2=1.316.2.49&ty=u Index: Zend/zend_execute.c diff -u Zend/zend_execute.c:1.316.2.48 Zend/zend_execute.c:1.316.2.49 --- Zend/zend_execute.c:1.316.2.48 Mon Feb 21 07:38:54 2005 +++ Zend/zend_execute.c Mon May 2 21:30:06 2005 @@ -2359,6 +2359,7 @@ /* probably redundant */ zend_hash_internal_pointer_reset(fe_ht); } else { + zend_error(E_WARNING, "Invalid argument supplied for foreach()"); /* JMP to the end of foreach */ EX(opline) = op_array->opcodes+EX(opline)[1].op2.u.opline_num; continue;

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