Skip to content

Commit d0b3096

Browse files
committed
Reset FG(user_stream_current_filename) at the end of request
Attempt to fix oss-fuzz #51047
1 parent 4a8cca2 commit d0b3096

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/streams/streams.c

+1
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,7 @@ static void stream_resource_persistent_dtor(zend_resource *rsrc)
16651665

16661666
void php_shutdown_stream_hashes(void)
16671667
{
1668+
FG(user_stream_current_filename) = NULL;
16681669
if (FG(stream_wrappers)) {
16691670
zend_hash_destroy(FG(stream_wrappers));
16701671
efree(FG(stream_wrappers));

0 commit comments

Comments
 (0)