diff --git a/htdocs/always.php b/htdocs/always.php index 9e817023..7d1da1b2 100644 --- a/htdocs/always.php +++ b/htdocs/always.php @@ -38,7 +38,7 @@ function early_exception_handler($e) { foreach( $trace AS $k => $v ) { printf( "%s[%d] %s%s%s()\n", $v['file'], $v['line'], (isset($v['class'])?$v['class']:''), (isset($v['type'])?$v['type']:''), (isset($v['function'])?$v['function']:'') ); } - + error_log("PHP Early Exception: [".$e->getCode()."] ".$e->getmessage()." at ".$e->getFile().":".$e->getLine()); } set_exception_handler('early_exception_handler'); diff --git a/inc/always.php.in b/inc/always.php.in index b30fe6bd..d054a4a4 100644 --- a/inc/always.php.in +++ b/inc/always.php.in @@ -38,7 +38,7 @@ function early_exception_handler($e) { foreach( $trace AS $k => $v ) { printf( "%s[%d] %s%s%s()\n", $v['file'], $v['line'], (isset($v['class'])?$v['class']:''), (isset($v['type'])?$v['type']:''), (isset($v['function'])?$v['function']:'') ); } - + error_log("PHP Early Exception: [".$e->getCode()."] ".$e->getmessage()." at ".$e->getFile().":".$e->getLine()); } set_exception_handler('early_exception_handler');