mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Revise buffer/seek code a little.
Tidy up user streams even more. Make test case quite aggressive.
This commit is contained in:
parent
2f4ed252de
commit
9e84b3d5b5
5 changed files with 397 additions and 46 deletions
|
@ -377,6 +377,10 @@ PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, voi
|
|||
#define PHP_STREAM_BUFFER_LINE 1 /* line buffered */
|
||||
#define PHP_STREAM_BUFFER_FULL 2 /* fully buffered */
|
||||
|
||||
#define PHP_STREAM_OPTION_RETURN_OK 0 /* option set OK */
|
||||
#define PHP_STREAM_OPTION_RETURN_ERR -1 /* problem setting option */
|
||||
#define PHP_STREAM_OPTION_RETURN_NOTIMPL -2 /* underlying stream does not implement; streams can handle it instead */
|
||||
|
||||
/* copy up to maxlen bytes from src to dest. If maxlen is PHP_STREAM_COPY_ALL, copy until eof(src).
|
||||
* Uses mmap if the src is a plain file and at offset 0 */
|
||||
#define PHP_STREAM_COPY_ALL -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue