From c652ed16b7d5929c47a0b0c3658f3b4ee9496b5a Mon Sep 17 00:00:00 2001 From: rylon Date: Sat, 21 Dec 2013 04:12:14 +0100 Subject: [PATCH] & seams to be deprecated - whats up with that? still workin now? --- log/log.php | 2 +- system/HEADER.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);} }