cvs: php-src(PHP_5_0) /main php_streams.h

From: Date: Wed, 06 Apr 2005 14:47:51 +0000
Subject: cvs: php-src(PHP_5_0) /main php_streams.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31263@lists.php.net to get a copy of this message
iliaa Wed Apr 6 10:47:51 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/main php_streams.h Log: MFH: Fixed bug #32553 (mmap loads only the 1st 2000000 bytes on Win32). http://cvs.php.net/diff.php/php-src/main/php_streams.h?r1=1.95.2.2&r2=1.95.2.3&ty=u Index: php-src/main/php_streams.h diff -u php-src/main/php_streams.h:1.95.2.2 php-src/main/php_streams.h:1.95.2.3 --- php-src/main/php_streams.h:1.95.2.2 Mon Feb 21 19:24:50 2005 +++ php-src/main/php_streams.h Wed Apr 6 10:47:51 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_streams.h,v 1.95.2.2 2005/02/22 00:24:50 iliaa Exp $ */ +/* $Id: php_streams.h,v 1.95.2.3 2005/04/06 14:47:51 iliaa Exp $ */ #ifndef PHP_STREAMS_H #define PHP_STREAMS_H @@ -410,10 +410,8 @@ #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);

« previous php.cvs (#31263) next »