Skip to content

Commit ddec728

Browse files
vincentselsdregad
authored andcommittedMar 30, 2012
Fix #13785: Add filename and line number to system notices and warnings
Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
1 parent 4c3ffce commit ddec728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/error_api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ function error_handler( $p_type, $p_error, $p_file, $p_line, $p_context ) {
111111
switch( $p_type ) {
112112
case E_WARNING:
113113
$t_error_type = 'SYSTEM WARNING';
114-
$t_error_description = $p_error;
114+
$t_error_description = "'$p_error' in '$p_file' line $p_line";
115115
break;
116116
case E_NOTICE:
117117
$t_error_type = 'SYSTEM NOTICE';
118-
$t_error_description = $p_error;
118+
$t_error_description = "'$p_error' in '$p_file' line $p_line";
119119
break;
120120
case E_USER_ERROR:
121121
$t_error_type = "APPLICATION ERROR #$p_error";

0 commit comments

Comments
 (0)
Please sign in to comment.