remove preg replace with e flag for php 7
This commit is contained in:
parent
c35cf85db5
commit
d0a07a74cc
|
@ -32,7 +32,7 @@ function debug_string_backtrace() {
|
||||||
$trace = preg_replace('/^#0\s+' . __FUNCTION__ . "[^\n]*\n/", '', $trace, 1);
|
$trace = preg_replace('/^#0\s+' . __FUNCTION__ . "[^\n]*\n/", '', $trace, 1);
|
||||||
|
|
||||||
// Renumber backtrace items.
|
// Renumber backtrace items.
|
||||||
$trace = preg_replace('/^#(\d+)/me', '\'#\' . ($1 - 1)', $trace);
|
// $trace = preg_replace('/^#(\d+)/me', '\'#\' . ($1 - 1)', $trace);
|
||||||
|
|
||||||
return $trace;
|
return $trace;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue