]> granicus.if.org Git - php/commitdiff
- Increase max mmap size to 8 MB
authorMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 17:12:38 +0000 (17:12 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 17:12:38 +0000 (17:12 +0000)
main/streams/mmap.c

index 2dae36f97748ea6afec178bba32c9c78685f6c61..6619fdc039df6c9a3179d1a5ac88c9df49e3efd6 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 2MB limit to avoid
         * runaway swapping when large files are passed thru. */
-       if (length > 2 * 1024 * 1024) {
+       if (length > 8 * 1024 * 1024) {
                return NULL;
        }