#28938 [NEW]: foreach statement can be forced to crash PHP

From: Date: Mon, 28 Jun 2004 07:25:33 +0000
Subject: #28938 [NEW]: foreach statement can be forced to crash PHP
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61400@lists.php.net to get a copy of this message
From: tomas_matousek at hotmail dot com Operating system: WinXP PHP version: 5.0.0RC3 PHP Bug Type: Scripting Engine problem Bug description: foreach statement can be forced to crash PHP Description: ------------ The following code crashes PHP. Reproduce code: --------------- $a = array(0,1,2); foreach ($a as $value) { $a->foo = "bar"; } Expected result: ---------------- none Actual result: -------------- crash -- Edit bug report at http://bugs.php.net/?id=28938&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28938&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28938&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28938&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28938&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28938&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28938&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28938&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28938&r=support Expected behavior: http://bugs.php.net/fix.php?id=28938&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28938&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28938&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28938&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28938&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28938&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28938&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28938&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28938&r=float

« previous php.bugs (#61400) next »