cvs: Zend(PHP_4_4) / zend_execute.c php-src NEWS

From: Date: Wed, 10 Aug 2005 10:37:05 +0000
Subject: cvs: Zend(PHP_4_4) / zend_execute.c php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3980@lists.php.net to get a copy of this message
dmitry Wed Aug 10 06:37:05 2005 EDT Modified files: (Branch: PHP_4_4) /php-src NEWS /Zend zend_execute.c Log: Fixed bug #34064 (arr[] as param to function is allowed only if function receives argument by reference) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.920.2.22&r2=1.1247.2.920.2.23&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.920.2.22 php-src/NEWS:1.1247.2.920.2.23 --- php-src/NEWS:1.1247.2.920.2.22 Wed Aug 10 04:24:10 2005 +++ php-src/NEWS Wed Aug 10 06:37:03 2005 @@ -1,6 +1,8 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2005, Version 4.4.1 +- Fixed bug #34064 (arr[] as param to function is allowed only if function + receives argument by reference). (Dmitry) - Fixed bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP). (Dmitry) - Fixed bug #33940 (array_map() fails to pass by reference when called recursively). (Dmitry) http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.49.2.6&r2=1.316.2.49.2.7&ty=u Index: Zend/zend_execute.c diff -u Zend/zend_execute.c:1.316.2.49.2.6 Zend/zend_execute.c:1.316.2.49.2.7 --- Zend/zend_execute.c:1.316.2.49.2.6 Mon Jun 27 02:15:48 2005 +++ Zend/zend_execute.c Wed Aug 10 06:37:04 2005 @@ -1324,6 +1324,9 @@ /* Behave like FETCH_DIM_W */ zend_fetch_dimension_address(&EX(opline)->result, &EX(opline)->op1, &EX(opline)->op2, EX(Ts), BP_VAR_W TSRMLS_CC); } else { + if (EX(opline)->op2.op_type == IS_UNUSED) { + zend_error(E_ERROR, "Cannot use [] for reading"); + } /* Behave like FETCH_DIM_R, except for locking used for list() */ zend_fetch_dimension_address(&EX(opline)->result, &EX(opline)->op1, &EX(opline)->op2, EX(Ts), BP_VAR_R TSRMLS_CC); AI_USE_PTR(EX(Ts)[EX(opline)->result.u.var].var);

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