From: eric at cosky dot com Operating system: Windows XP SP1 PHP version: 5.0.0b1 (beta1) PHP Bug Type: Reproducible crash Bug description: class hints with array_walk() causing crash
Description: ------------ The following code crashes my install of PHP from July 13, 2003. Removing the class hint in BoomWalker eliminates the crash. Reproduce code: --------------- class SomeClass {} class CrashClass { function Boom() { $a = array( 0,1,2 ); array_walk(&$a, "BoomWalker", &$this); } } function BoomWalker(SomeClass &$arrayItem, &$key, &$crashObj) {} $c = new CrashClass; $c->Boom(); Expected result: ---------------- Nothing. Actual result: -------------- System alert for PHP crashing. -- Edit bug report at http://bugs.php.net/?id=24658&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24658&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24658&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24658&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24658&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24658&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24658&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24658&r=support Expected behavior: http://bugs.php.net/fix.php?id=24658&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24658&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24658&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24658&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24658&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24658&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24658&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24658&r=gnused