ID: 31364 Updated by: [EMAIL PROTECTED] Reported By: hoffmann at btc dot com dot tw -Status: Open +Status: Bogus Bug Type: Zlib Related Operating System: redhat9 PHP Version: 4.3.10 New Comment:
Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. And search the bugsystem first! This is number 17 or so. Previous Comments: ------------------------------------------------------------------------ [2004-12-31 09:24:44] hoffmann at btc dot com dot tw Description: ------------ diff php-4.3.8 php-4.3.10 by foreach function Reproduce code: --------------- <? //php-4.3.8 $a="1,2,3,4,5,6"; foreach(explode(",",$a) AS $k) { echo "$k\n"; } ?> result: 1 2 3 4 5 6 Expected result: ---------------- 1 2 3 4 5 6 Actual result: -------------- <? //php-4.3.10 $a="1,2,3,4,5,6"; foreach(explode(",",$a) AS $k) { echo "$k\n"; } ?> result: array array array array array array ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31364&edit=1