]> granicus.if.org Git - php/commit
Bugfix#75515 php://streams behaving greedily
authorSara Golemon <pollita@php.net>
Mon, 13 Nov 2017 11:11:59 +0000 (06:11 -0500)
committerSara Golemon <pollita@php.net>
Mon, 13 Nov 2017 14:40:34 +0000 (09:40 -0500)
commit0a45e8f096a04464bda6277c6f3d0b5461737a27
tree11d15c12214d564c9ec22bca684f08986368dd59
parent704bcd385f4dfc28db54aa5d3c46c30ea1107695
Bugfix#75515 php://streams behaving greedily

5060fc23 attempted to fix #68948 by treating all non-uri streams
as non-blocking, however php://fd/* streams (which includes stdin)
may block if the other end of the IPC isn't finished.

This represents a partial revert to the pre RC6 state,
but includes an escape hatch for php://memory and php://temp
streams which are local to the current process.

This also restores stream_set_chunk_size test to previous state.
ext/standard/tests/streams/stream_set_chunk_size.phpt
main/streams/streams.c