From: mbm at interflow dot dk Operating system: Multiple OS PHP version: 5.0.4 PHP Bug Type: Reproducible crash Bug description: Circular call leeds to segmentation fault
Description: ------------ Recursively calling two functions in a class leads to a segmentation fault. Reproduce code: --------------- class SegFault { public function call(){ $this->back(); } public function back(){ $this->call(); } } $seg = new SegFault(); $seg->Call(); Expected result: ---------------- I'd expect some kind of error when php runs out of buffer for the callstack - this function clearly is an example of bad code in the script - however php shouldnt die by segmentation fault. Actual result: -------------- Segmentation fault -- Edit bug report at http://bugs.php.net/?id=32874&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32874&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32874&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32874&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32874&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32874&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32874&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32874&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32874&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32874&r=support Expected behavior: http://bugs.php.net/fix.php?id=32874&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32874&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32874&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32874&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32874&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32874&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32874&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32874&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32874&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32874&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32874&r=mysqlcfg