|
@@ 625-628 (lines=4) @@
|
| 622 |
|
$_error->log_exception($severity, $message, $filepath, $line); |
| 623 |
|
|
| 624 |
|
// Should we display the error? |
| 625 |
|
if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors'))) |
| 626 |
|
{ |
| 627 |
|
$_error->show_php_error($severity, $message, $filepath, $line); |
| 628 |
|
} |
| 629 |
|
|
| 630 |
|
// If the error is fatal, the execution of the script should be stopped because |
| 631 |
|
// errors can't be recovered from. Halting the script conforms with PHP's |
|
@@ 660-663 (lines=4) @@
|
| 657 |
|
$_error->log_exception('error', 'Exception: '.$exception->getMessage(), $exception->getFile(), $exception->getLine()); |
| 658 |
|
|
| 659 |
|
// Should we display the error? |
| 660 |
|
if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors'))) |
| 661 |
|
{ |
| 662 |
|
$_error->show_exception($exception); |
| 663 |
|
} |
| 664 |
|
|
| 665 |
|
exit(1); // EXIT_ERROR |
| 666 |
|
} |