diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-04-06 14:47:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-04-06 14:47:51 +0000 |
commit | eaed8e0922da5ca5bfb033e719781aa8b10bcdae (patch) | |
tree | 279188be758f072483b3b74c48fe18d16e92b1e4 /main/php_streams.h | |
parent | 84c1e20749762e7f42bd02edb196dbe5fe6d510b (diff) | |
download | php-git-eaed8e0922da5ca5bfb033e719781aa8b10bcdae.tar.gz |
MFH: Fixed bug #32553 (mmap loads only the 1st 2000000 bytes on Win32).
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 00ea378695..2ae36e407f 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -410,10 +410,8 @@ END_EXTERN_C() #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 - * To ensure we don't take up too much memory when reading large files, set the default mmap length - * at this many bytes */ -#define PHP_STREAM_COPY_ALL 2000000 + * Uses mmap if the src is a plain file and at offset 0 */ +#define PHP_STREAM_COPY_ALL ((size_t)-1) BEGIN_EXTERN_C() PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_DC TSRMLS_DC); |