From: Zeev Suraski Date: Sun, 17 Nov 2002 13:26:38 +0000 (+0000) Subject: Unify handling of error_reporting - fix bug #16137 X-Git-Tag: RELEASE_1_0b2~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d372861f03e100dc6408669e940aad0b4ad50664;p=php Unify handling of error_reporting - fix bug #16137 --- diff --git a/main/main.c b/main/main.c index 145a9b707c..f323f3e1fb 100644 --- a/main/main.c +++ b/main/main.c @@ -162,18 +162,6 @@ static PHP_INI_MH(OnChangeMemoryLimit) /* }}} */ #endif -/* {{{ PHP_INI_MH - */ -static PHP_INI_MH(OnUpdateErrorReporting) -{ - if (!new_value) { - EG(error_reporting) = E_ALL & ~E_NOTICE; - } else { - EG(error_reporting) = atoi(new_value); - } - return SUCCESS; -} -/* }}} */ /* {{{ php_disable_functions */ @@ -307,7 +295,6 @@ PHP_INI_BEGIN() PHP_INI_ENTRY("SMTP", "localhost",PHP_INI_ALL, NULL) PHP_INI_ENTRY("smtp_port", "25", PHP_INI_ALL, NULL) PHP_INI_ENTRY("browscap", NULL, PHP_INI_SYSTEM, NULL) - PHP_INI_ENTRY("error_reporting", NULL, PHP_INI_ALL, OnUpdateErrorReporting) #if MEMORY_LIMIT PHP_INI_ENTRY("memory_limit", "8M", PHP_INI_ALL, OnChangeMemoryLimit) #endif @@ -1085,6 +1072,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod } REGISTER_INI_ENTRIES(); + zend_register_standard_ini_entries(TSRMLS_C); /* initialize stream wrappers registry * (this uses configuration parameters from php.ini)