summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-03-23 07:54:22 (GMT)
committerMarcus Boerger <helly@php.net>2005-03-23 07:54:22 (GMT)
commit15ed825d6e4e072c4b2cb895147b049b0487aaac (patch)
tree9fc6d46785834bed690e32cd28417444aac32dd5 /main
parent4ecbf1792b8a8677c0ae160e7f95f20eb01924fe (diff)
downloadphp-15ed825d6e4e072c4b2cb895147b049b0487aaac.tar.gz
- Notices shouldn't be treatedas errors and thus not being conidered to be
converted to exceptions.
Diffstat (limited to 'main')
-rw-r--r--main/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index 3332ad5..715b8e5 100644
--- a/main/main.c
+++ b/main/main.c
@@ -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