]> granicus.if.org Git - php/commit
Clear FG(user_stream_current_filename) when bailing out
authorSara Golemon <pollita@php.net>
Wed, 12 Oct 2016 04:35:10 +0000 (21:35 -0700)
committerSara Golemon <pollita@php.net>
Wed, 12 Oct 2016 04:46:02 +0000 (21:46 -0700)
commit9f86cdaf7fc44c0d97a35bc4d04622e3d3d53f4d
treebd160362c1b7939ebcf1c154ee1f50b19599dd6a
parent6046a99b97b5abab2e75d73bc9d73062f1943126
Clear FG(user_stream_current_filename) when bailing out

If a userwrapper opener E_ERRORs then FG(user_stream_current_filename)
would remain set until the next request and would not be pointing
at unallocated memory.

Catch the bailout, clear the variable, then continue bailing.

Closes https://bugs.php.net/bug.php?id=73188
ext/standard/tests/streams/user-stream-error.phpt [new file with mode: 0644]
main/streams/userspace.c