#40815 [Opn->Asn]: Trying apply default exception handler produces segfault
ID: 40815
Updated by: tony2001@php.net
Reported By: nizar dot jouini at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Reproducible crash
Operating System: Linux 2.6.17-10/Ubuntu 6.10
PHP Version: 5.2.1
-Assigned To:
+Assigned To: tony2001
Previous Comments:
------------------------------------------------------------------------
[2007-03-15 10:48:05] nizar dot jouini at gmail dot com
It seems that it is also possible to produce this in RHEL4/Centos4 (PHP
5.2.1 compiled from sources) with the same result.
------------------------------------------------------------------------
[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)