Skip to content

Commit

Permalink
Fix #13785: Add filename and line number to system notices and warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Regad <damien.regad@merckgroup.com>
  • Loading branch information
vincentsels authored and dregad committed Mar 30, 2012
1 parent 39a4080 commit 4f47fef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/error_api.php
Expand Up @@ -95,11 +95,11 @@ function error_handler( $p_type, $p_error, $p_file, $p_line, $p_context ) {
switch( $p_type ) {
case E_WARNING:
$t_error_type = 'SYSTEM WARNING';
$t_error_description = $p_error;
$t_error_description = "'$p_error' in '$p_file' line $p_line";
break;
case E_NOTICE:
$t_error_type = 'SYSTEM NOTICE';
$t_error_description = $p_error;
$t_error_description = "'$p_error' in '$p_file' line $p_line";
break;
case E_USER_ERROR:
$t_error_type = "APPLICATION ERROR #$p_error";
Expand Down

0 comments on commit 4f47fef

Please sign in to comment.