#45750 [Csd->Bgs]: php -r segfault on "throw Exception()" when extended exception class exists

From: Date: Fri, 08 Aug 2008 02:36:32 +0000
Subject: #45750 [Csd->Bgs]: php -r segfault on "throw Exception()" when extended exception class exists
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127758@lists.php.net to get a copy of this message
ID: 45750 Updated by: felipe@php.net Reported By: pmjones88 at gmail dot com -Status: Closed +Status: Bogus Bug Type: Reproducible crash Operating System: Mac OS X 10.5.4 PHP Version: 5.2.6 Previous Comments: ------------------------------------------------------------------------ [2008-08-08 02:27:10] pmjones88 at gmail dot com I was in error. I was using 5.2.5., not 5.2.6. The segfault does not occur in 5.2.6. Sorry for the noise, guys. ------------------------------------------------------------------------ [2008-08-08 01:35:58] johannes@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Works for me with 5.2 and 5.3, please provide a backtrace using a newer snapshot. And please make sure you have no Zend Extensions enabled. ------------------------------------------------------------------------ [2008-08-08 01:05:14] pmjones88 at gmail dot com Description: ------------ At the PHP command line, when running code using -r, the presence of an extended Exception class will cause a segmentation fault when any Exception is thrown. Reproduce code: --------------- # no segfault php -r "throw new Exception();" # segfault php -r "class Foo extends Exception {} throw new Exception();" Expected result: ---------------- I expect to see no segfault exit. Actual result: -------------- A segfault exit. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45750&edit=1

« previous php.bugs (#127758) next »