From: Ilia Alshanetsky Date: Wed, 23 Feb 2005 22:41:05 +0000 (+0000) Subject: Increase maximum mmapable file size to 2mb from 1mb. X-Git-Tag: RELEASE_0_3~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8aaafb1ae9a5a19953d2b40ed7c6ae1bebb38add;p=php Increase maximum mmapable file size to 2mb from 1mb. --- diff --git a/main/streams/mmap.c b/main/streams/mmap.c index 82bfa623f1..aa4320dc76 100644 --- a/main/streams/mmap.c +++ b/main/streams/mmap.c @@ -33,7 +33,7 @@ PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t le /* For now, we impose an arbitrary 1MB limit to avoid * runaway swapping when large files are passed thru. */ - if (length > 1 * 1024 * 1024) { + if (length > 2 * 1024 * 1024) { return NULL; }