Skip to content

Commit f4afa9a

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Reset FG(user_stream_current_filename) at the end of request
2 parents 466e4dc + d0b3096 commit f4afa9a

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
@@ -1674,6 +1674,7 @@ static void stream_resource_persistent_dtor(zend_resource *rsrc)
16741674

16751675
void php_shutdown_stream_hashes(void)
16761676
{
1677+
FG(user_stream_current_filename) = NULL;
16771678
if (FG(stream_wrappers)) {
16781679
zend_hash_destroy(FG(stream_wrappers));
16791680
efree(FG(stream_wrappers));

0 commit comments

Comments
 (0)