Skip to content

Commit 72fec0b

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Reset FG(user_stream_current_filename) at the end of request
2 parents 9f9042f + d64aa6f commit 72fec0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/streams/streams.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,7 @@ static void stream_resource_persistent_dtor(zend_resource *rsrc)
17611761

17621762
void php_shutdown_stream_hashes(void)
17631763
{
1764+
FG(user_stream_current_filename) = NULL;
17641765
if (FG(stream_wrappers)) {
17651766
zend_hash_destroy(FG(stream_wrappers));
17661767
efree(FG(stream_wrappers));

0 commit comments

Comments
 (0)