mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
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:
parent
7484b67b3a
commit
6791208ae1
3 changed files with 26 additions and 10 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue