Clear out last error & last error file information at the end of the

request to ensure that they don't propogate to the next request
This commit is contained in:
Ilia Alshanetsky 2007-07-15 14:15:02 +00:00
parent c5e892b213
commit a2fa9bbe84

View File

@ -1337,6 +1337,16 @@ void php_request_shutdown(void *dummy)
}
} zend_end_try();
/* 6.5 free last error information */
if (PG(last_error_message)) {
free(PG(last_error_message));
PG(last_error_message) = NULL;
}
if (PG(last_error_file)) {
free(PG(last_error_file));
PG(last_error_file) = NULL;
}
/* 7. Shutdown scanner/executor/compiler and restore ini entries */
zend_deactivate(TSRMLS_C);