diff --git a/log/log.php b/log/log.php index a8367c5..fa3d6dd 100644 --- a/log/log.php +++ b/log/log.php @@ -49,7 +49,7 @@ class log { public static function __fatal_error_handler($bufferContent, $thrown = true){ $errors = array(); - if ( preg_match('|.*|s', $bufferContent, &$errors) ){ + if ( preg_match('|.*|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 ')); diff --git a/system/HEADER.php b/system/HEADER.php index 7bacb98..9a2206d 100644 --- a/system/HEADER.php +++ b/system/HEADER.php @@ -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);} }