forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
769 B
28 lines
769 B
<?php |
|
|
|
if (!function_exists('error_get_last')) { |
|
set_error_handler( |
|
create_function( |
|
'$errno,$errstr,$errfile,$errline,$errcontext', ' |
|
global $__error_get_last_retval__; |
|
$__error_get_last_retval__ = array( |
|
\'type\' => $errno, |
|
\'message\' => $errstr, |
|
\'file\' => $errfile, |
|
\'line\' => $errline |
|
); |
|
return false; |
|
' |
|
) |
|
); |
|
|
|
function error_get_last() { |
|
global $__error_get_last_retval__; |
|
if (!isset($__error_get_last_retval__)) { |
|
return null; |
|
} |
|
return $__error_get_last_retval__; |
|
} |
|
|
|
} |
|
?>
|
|
|