#40815 [Opn]: Trying apply default exception handler produces segfault

From: Date: Thu, 15 Mar 2007 10:48:05 +0000
Subject: #40815 [Opn]: Trying apply default exception handler produces segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110369@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#110369) next »