Prevent function arguments from being exposed in the error log

Also: Produce backtrace when a regular error occurs
Also: Remove unnecessary check for DEBUG_BACKTRACE_IGNORE_ARGS
(This is not necessary in PHP > 5.3.6)
This commit is contained in:
Kijin Sung 2016-06-15 17:03:32 +09:00
parent 7484b67b3a
commit 6791208ae1
3 changed files with 26 additions and 10 deletions

View file

@ -371,7 +371,7 @@ class DB
if (config('debug.enabled') && in_array('queries', config('debug.display_content')))
{
$bt = defined('DEBUG_BACKTRACE_IGNORE_ARGS') ? debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) : debug_backtrace();
$bt = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
foreach($bt as $no => $call)
{
if($call['function'] == 'executeQuery' || $call['function'] == 'executeQueryArray')