php cli crashes on uncaught derived exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
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@
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(
System: gutsy / 7.10
Expected results (from another machine):
[marmida@
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@
Thanks or the bug report. I am able to kind of reproduce this in hardy. What is the output you expect?
Thanks
chuck