]> granicus.if.org Git - php/commitdiff
MFH: Increase maximum mmapable file size to 2mb from 1mb.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 23 Feb 2005 22:41:24 +0000 (22:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 23 Feb 2005 22:41:24 +0000 (22:41 +0000)
main/streams/mmap.c

index 82bfa623f10dc3cfc062cfdb4ef32be3b4e4940d..aa4320dc76050d95845455c72363300fe73af09c 100644 (file)
@@ -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;
        }