From 11fb10b74d6a32c669e19e9f94447fdc7b399df2 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 23 Feb 2005 22:41:24 +0000 Subject: [PATCH] MFH: Increase maximum mmapable file size to 2mb from 1mb. --- main/streams/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1