Skip to content

Commit 4f47fef

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 39a4080 commit 4f47fef

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
@@ -95,11 +95,11 @@ function error_handler( $p_type, $p_error, $p_file, $p_line, $p_context ) {
9595
switch( $p_type ) {
9696
case E_WARNING:
9797
$t_error_type = 'SYSTEM WARNING';
98-
$t_error_description = $p_error;
98+
$t_error_description = "'$p_error' in '$p_file' line $p_line";
9999
break;
100100
case E_NOTICE:
101101
$t_error_type = 'SYSTEM NOTICE';
102-
$t_error_description = $p_error;
102+
$t_error_description = "'$p_error' in '$p_file' line $p_line";
103103
break;
104104
case E_USER_ERROR:
105105
$t_error_type = "APPLICATION ERROR #$p_error";

0 commit comments

Comments
 (0)