| @@ 69-72 (lines=4) @@ | ||
| 66 | // Display error |
|
| 67 | function errorDisplay() { |
|
| 68 | $e = error_get_last(); |
|
| 69 | if (!is_array($e) |
|
| 70 | || !in_array($e['type'], array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR))) { |
|
| 71 | return; |
|
| 72 | } |
|
| 73 | echo "Application Error\n"; |
|
| 74 | if (getenv('BLUZ_DEBUG')) { |
|
| 75 | echo $e['message']."\n"; |
|
| @@ 44-47 (lines=4) @@ | ||
| 41 | if (!$e = error_get_last()) { |
|
| 42 | return; |
|
| 43 | } |
|
| 44 | if (!is_array($e) |
|
| 45 | || !in_array($e['type'], array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR))) { |
|
| 46 | return; |
|
| 47 | } |
|
| 48 | // clean all buffers |
|
| 49 | while (ob_get_level()) { |
|
| 50 | ob_end_clean(); |
|