]> granicus.if.org Git - php/commitdiff
- Settle to 4 MB, see internals@ archives
authorMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 19:37:32 +0000 (19:37 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 21 Mar 2008 19:37:32 +0000 (19:37 +0000)
main/streams/mmap.c

index 633ab1b70607deff1476381c9fb8d767c703bce8..9749257f7a024236ccfd3cd2146d2a3a14db947c 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 limit to avoid
         * runaway swapping when large files are passed thru. */
-       if (length > 8 * 1024 * 1024) {
+       if (length > 4 * 1024 * 1024) {
                return NULL;
        }