From: work at setor dot net Operating system: Linux PHP version: 5.2.9 PHP Bug Type: Reproducible crash Bug description: PHP crashes when in class method argument throw Exception
Description: ------------ Looks like this bug #47730 php chashes (Segmentation fault). See reproduce code and comments inside for further details. Reproduce code: --------------- <?php ini_set( 'display_errors', 1 ); class ExceptionBug { public function execute() { $this->test( $this->makeThrow() ); } private function test( $test ) { } private function makeThrow() { throw new Exception( 'test' ); } } $Test = new ExceptionBug(); $Test->execute(); Expected result: ---------------- Fatal error: Uncaught exception 'Exception' with message 'test' in /data2/www/test.php:18 Stack trace: #0 /data2/www/test.php(9): ExceptionBug->makeThrow() #1 /data2/www/test.php(23): ExceptionBug->execute() #2 {main} thrown in /data2/www/test.php on line 18 Actual result: -------------- nothing. php crashes. Segmentation fault in cli -- Edit bug report at http://bugs.php.net/?id=47753&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47753&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47753&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47753&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47753&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47753&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47753&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47753&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47753&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47753&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47753&r=support Expected behavior: http://bugs.php.net/fix.php?id=47753&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47753&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47753&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47753&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47753&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47753&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47753&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47753&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47753&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47753&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47753&r=mysqlcfg