issue 3644, php5대응 file_put_contents 함수 적용

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13199 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
khongchi 2013-11-12 02:17:35 +00:00
parent 4f4c63ed3d
commit d9f001266c
7 changed files with 17 additions and 49 deletions

View file

@ -459,13 +459,7 @@ class DB
$buff[] = '<?php exit(); ?>';
}
$buff[] = print_r($log, TRUE);
if(@!$fp = fopen($debug_file, "a"))
{
return;
}
fwrite($fp, implode("\n", $buff) . "\n\n");
fclose($fp);
@file_put_contents($log_file, implode("\n", $buff) . "\n\n", FILE_APPEND);
}
}
else
@ -486,11 +480,7 @@ class DB
$buff .= sprintf("%s\t%s\n\t%0.6f sec\tquery_id:%s\n\n", date("Y-m-d H:i"), $this->query, $elapsed_time, $this->query_id);
if($fp = fopen($log_file, 'a'))
{
fwrite($fp, $buff);
fclose($fp);
}
@file_put_contents($log_file, $buff, FILE_APPEND);
}
}