[Bug 198246] [NEW] php cli crashes on uncaught derived exception
marmida
michael at frood.org
Tue Mar 4 02:58:47 GMT 2008
Public bug reported:
Binary package hint: php5-cli
PHP on the cli dies with "zend_mm_heap corrupted" when handling a script
that throws an exception extended from the base Exception class. If not
caught, the crash happens. This only occurs for extensions of
Exception; php executing uncaught base Exception instances exits
cleanly.
Shell session:
marmida at marmida-desktop:/www/skyraise/wc/cli$ php -r "class
TestException extends Exception {}; throw new TestException('hello');"
Fatal error: Uncaught exception 'TestException' with message 'hello' in Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
zend_mm_heap corrupted
Test PHP script:
class TestException extends Exception {}
throw new TestException('hello');
System: gutsy / 7.10
Expected results (from another machine):
[marmida at 138210-web1 ~]$ php -r "class TestException extends Exception {}; throw new TestException('hello');"
PHP Fatal error: Uncaught exception 'TestException' with message 'hello' in Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
[marmida at 138210-web1 ~]$
** Affects: php5 (Ubuntu)
Importance: Undecided
Status: New
--
php cli crashes on uncaught derived exception
https://bugs.launchpad.net/bugs/198246
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list