& seams to be deprecated - whats up with that? still workin now?
This commit is contained in:
parent
a256e8a4bb
commit
c652ed16b7
@ -49,7 +49,7 @@ class log {
|
||||
|
||||
public static function __fatal_error_handler($bufferContent, $thrown = true){
|
||||
$errors = array();
|
||||
if ( preg_match('|<phpfatalerror>.*</phpfatalerror>|s', $bufferContent, &$errors) ){
|
||||
if ( preg_match('|<phpfatalerror>.*</phpfatalerror>|s', $bufferContent, $errors) ){
|
||||
$error = strip_tags($errors[0]);
|
||||
$error = substr($error,1,strlen($error)-2);
|
||||
$file = substr($error,strpos($error,' in ')+5,strpos($error,' on ')-5-strpos($error,' in '));
|
||||
|
||||
@ -6,7 +6,7 @@ class HEADER {
|
||||
private static function checkHeader(){
|
||||
$file = null;
|
||||
$line = null;
|
||||
if(headers_sent(&$file, &$line)){
|
||||
if(headers_sent($file, $line)){
|
||||
throw new \SYSTEM\LOG\ERROR('Header already sent @ '.$file.' line '.$line);}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user