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:
[EMAIL PROTECTED]:/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):
[EMAIL PROTECTED] ~]$ 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
[EMAIL PROTECTED] ~]$
** 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
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs