]> granicus.if.org Git - php/commitdiff
- Prevent E_STRICT from ending up as exception
authorMarcus Boerger <helly@php.net>
Tue, 16 Aug 2005 18:09:27 +0000 (18:09 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 16 Aug 2005 18:09:27 +0000 (18:09 +0000)
main/main.c

index 0e5e9dcd3721d3e01c426392521f5ccca3fa69b9..a809defc002e14c0f7a956409a2ffb779202f097 100644 (file)
@@ -774,6 +774,9 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
                        case E_PARSE:
                                /* fatal errors are real errors and cannot be made exceptions */
                                break;
+                       case E_STRICT:
+                               /* for the sake of BC to old damaged code */
+                               break;
                        case E_NOTICE:
                        case E_USER_NOTICE:
                                /* notices are no errors and are not treated as such like E_WARNINGS */