Trying apply default exception handler produces segfault
| Bug #40815 | Trying apply default exception handler produces segfault | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-03-15 10:42 UTC | Modified: | 2007-03-15 16:44 UTC | ||
| From: | nizar dot jouini at gmail dot com | Assigned: | tony2001 (profile) | ||
| Status: | Closed | Package: | Reproducible crash | ||
| PHP Version: | 5.2.1 | OS: | Linux 2.6.17-10/Ubuntu 6.10 | ||
| Private report: | No | CVE-ID: | None | ||
[2007-03-15 10:42 UTC] nizar dot jouini at gmail dot com
Description:
------------
Trying to set an exception handler which is a type of 'static public function' results in a segfault. This script is run from php-cli
Reproduce code:
---------------
<?php
class ehandle{
static public function exh ($ex) {
echo 'foo';
}
}
set_exception_handler("ehandle::exh");
throw new Exception ("Whiii");
?>
Expected result:
----------------
I would expect to catch an exception.
Actual result:
--------------
fish: Job 1, ?php destroythis.php ? terminated by signal SIGSEGV (Address boundary error)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-03-15 10:48 UTC] nizar dot jouini at gmail dot com
[2007-03-15 16:44 UTC] tony2001@php.net