From: kevin at netflex dot nl Operating system: Windows/Netware and maybe more PHP version: 4.3.3 PHP Bug Type: Reproducible crash Bug description: pass by ref. to own function result in crash
Description: ------------ if you create an function that calls himself with an pass by ref. variable then as a result PHP crashes. tested with: * PHP 5.0.0b2-dev (snapshot: php5-win32-200309251030.zip) on Windows (Apache2 2.0.47 and Windows 2003) * PHP 4.3.3 on Windows (Apache2 2.0.47 and Windows 2003) * PHP 4.2.3 on Netware (Apache2 2.0.47 and Netware 6.5) In the web browser appears the page: "can't find server" and in the log files there is no information about the error/crash Reproduce code: --------------- crash($test = 0); function crash(&$test) { if ($test < 10) crash($test); $test++; } Expected result: ---------------- the variable test with an value of (int)10 Actual result: -------------- with PHP4 on Windows only php crashes and with PHP5 on Windows and PHP4 on Netware both php and apache2 crashes. -- Edit bug report at http://bugs.php.net/?id=25713&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25713&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25713&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25713&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25713&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25713&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25713&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25713&r=support Expected behavior: http://bugs.php.net/fix.php?id=25713&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25713&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25713&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25713&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25713&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25713&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25713&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25713&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25713&r=float