Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
  Reset FG(user_stream_current_filename) at the end of request
This commit is contained in:
Dmitry Stogov 2022-09-12 11:39:27 +03:00
commit d64aa6f646

View File

@ -1761,6 +1761,7 @@ static void stream_resource_persistent_dtor(zend_resource *rsrc)
void php_shutdown_stream_hashes(void)
{
FG(user_stream_current_filename) = NULL;
if (FG(stream_wrappers)) {
zend_hash_destroy(FG(stream_wrappers));
efree(FG(stream_wrappers));