#40815 [Opn]: Trying apply default exception handler produces segfault
ID: 40815
User updated by: nizar dot jouini at gmail dot com
Reported By: nizar dot jouini at gmail dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Linux 2.6.17-10/Ubuntu 6.10
PHP Version: 5.2.1
New Comment:
It seems that it is also possible to produce this in RHEL4/Centos4 (PHP
5.2.1 compiled from sources) with the same result.
Previous Comments:
------------------------------------------------------------------------
[2007-03-15 10:42:23] 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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40815&edit=1
Thread (4 messages)