php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch php_stream_set_option_read_buffer for Streams related Bug #51854Patch version 2010-05-18 18:00 UTC Return to Bug #51854 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: tjerk.meesters@gmail.comIndex: streams.c =================================================================== --- streams.c (revision 299464) +++ streams.c (working copy) @@ -1186,7 +1186,7 @@ /* try to match the buffer mode as best we can */ if (value == PHP_STREAM_BUFFER_NONE) { stream->flags |= PHP_STREAM_FLAG_NO_BUFFER; - } else { + } else if (streams->flag & PHP_STREAM_FLAG_NO_BUFFER) { stream->flags ^= PHP_STREAM_FLAG_NO_BUFFER; } ret = PHP_STREAM_OPTION_RETURN_OK; |
Copyright © 2001-2025 The PHP Group All rights reserved. |
Last updated: Wed Jan 15 09:01:28 2025 UTC |