]> granicus.if.org Git - php/commitdiff
- Fix error mode handling
authorMarcus Boerger <helly@php.net>
Thu, 11 May 2006 07:55:48 +0000 (07:55 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 11 May 2006 07:55:48 +0000 (07:55 +0000)
main/main.c

index 710f984b7017c4723935834c40dbefe99fea4b6c..09d8ad2c54de79820ad29bafb47c0281dd6a1fc4 100644 (file)
@@ -796,8 +796,10 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
        /* according to error handling mode, suppress error, throw exception or show it */
        if (PG(error_handling) != EH_NORMAL) {
                switch (type) {
+                       case E_ERROR:
                        case E_CORE_ERROR:
                        case E_COMPILE_ERROR:
+                       case E_USER_ERROR:
                        case E_PARSE:
                                /* fatal errors are real errors and cannot be made exceptions */
                                break;