@ properly restored after a call to error_reporting(), in between requests (Zeev)
static PHP_INI_MH(OnUpdateErrorReporting)
{
+ PLS_FETCH();
ELS_FETCH();
if (!new_value) {
- EG(error_reporting) = E_ALL & ~E_NOTICE;
+ PG(error_reporting) = E_ALL & ~E_NOTICE;
} else {
- EG(error_reporting) = atoi(new_value);
+ PG(error_reporting) = atoi(new_value);
}
+ EG(error_reporting) = PG(error_reporting);
return SUCCESS;
}
php_call_shutdown_functions();
php_ini_rshutdown();
+ EG(error_reporting) = PG(error_reporting);
zend_deactivate(CLS_C ELS_CC);
sapi_deactivate(SLS_C);
long memory_limit;
+ int error_reporting;
zend_bool track_errors;
zend_bool display_errors;
zend_bool log_errors;