|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-17 10:46 UTC] lamak at lamak dot ru
Description:
------------
<?
class Log
{
public static function eh($e)
{
}
}
set_exception_handler("Log::eh");
throw new Exception('boom!');
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 07:00:02 2025 UTC |
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.