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

index 732049f0d76323e9dfebae9e21e93e9f19183239..55b3d4dbfc621043f436bfc5ac4f8a3231bf22eb 100644 (file)
@@ -689,8 +689,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;