]> granicus.if.org Git - php/commitdiff
- MFH Notices shouldn't be treatedas errors and thus not being conidered to
authorMarcus Boerger <helly@php.net>
Wed, 23 Mar 2005 07:57:17 +0000 (07:57 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 23 Mar 2005 07:57:17 +0000 (07:57 +0000)
  be converted to exceptions.

main/main.c

index e65f8bd03a2bd7957a5c5a025dfe70e7fd745bf0..28dbdc265a4e63eb28650442d57a6b26d70ddfac 100644 (file)
@@ -660,6 +660,10 @@ 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_NOTICE:
+                       case E_USER_NOTICE:
+                               /* notices are no errors and are not treated as such like E_WARNIGNS */
+                               break;
                        default:
                                /* throw an exception if we are in EH_THROW mode
                                 * but DO NOT overwrite a pending excepption