#40515 [Bgs]: segmentation fault
| From: | lamak at lamak dot ru | Date: | Sat, 17 Feb 2007 11:23:19 +0000 |
| Subject: | #40515 [Bgs]: segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109057@lists.php.net to get a copy of this message | ||
ID: 40515
User updated by: lamak at lamak dot ru
Reported By: lamak at lamak dot ru
Status: Bogus
Bug Type: Reproducible crash
Operating System: Linux Ubuntu 2.6.17-10-server
PHP Version: 5.2.1
New Comment:
to mike@php.net
Thank you! I'm an idiot :) I solved this with
<?
class Log
{
public static function eh($e)
{
}
}
function myCallbackReplacementForHandler($e)
{
Log::eh($e)
}
set_exception_handler("myCallbackReplacementForHandler");
throw new Exception('boom!');
?>
now it works correctly. thanks once more for quick answer.
Previous Comments:
------------------------------------------------------------------------
[2007-02-17 11:15:47] mike@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Cannot reproduce:
Warning: set_exception_handler() expects the argument (c::f) to be a
valid callback in Command line code on line 1
Fatal error: Uncaught exception 'Exception' with message 'foo' in
Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
------------------------------------------------------------------------
[2007-02-17 10:46:30] lamak at lamak dot ru
Description:
------------
<?
class Log
{
public static function eh($e)
{
}
}
set_exception_handler("Log::eh");
throw new Exception('boom!');
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40515&edit=1