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

main/main.c

index 3332ad52e8ee7ca2bb4df8aed0c341792c93fa46..715b8e5da67e409c44a0da4c45e5e6dff5baf1e9 100644 (file)
@@ -657,6 +657,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