Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
e56e4a14
Commit
e56e4a14
authored
Nov 20, 2012
by
Benoit Mortier
Browse files
Fixes: #1531 Trace should be given for each fatal error
parent
6189a33b
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/functions.inc
View file @
e56e4a14
...
...
@@ -3911,7 +3911,7 @@ function fix_dos_linebreaks($str)
return
preg_replace
(
'/\\r\\n/'
,
"
\n
"
,
$str
);
}
function
html_trace
()
function
html_trace
(
$errstr
=
""
)
{
if
(
!
function_exists
(
'debug_backtrace'
))
{
return
array
(
""
,
""
);
...
...
include/php_setup.inc
View file @
e56e4a14
...
...
@@ -135,7 +135,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
$error_collector_mailto
.
=
rawurlencode
(
"PHP error:
$errstr
(
$errfile
, line
$errline
)
\n
"
);
$error_collector_mailto
.
=
rawurlencode
(
"=== /Error ===
\n\n
"
);
list
(
$html_trace
,
$mailto_trace
)
=
html_trace
();
list
(
$html_trace
,
$mailto_trace
)
=
html_trace
(
$errstr
);
$error_collector
.
=
$html_trace
;
$error_collector_mailto
.
=
$mailto_trace
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment