mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
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:
parent
c5e892b213
commit
a2fa9bbe84
10
main/main.c
10
main/main.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user