summaryrefslogtreecommitdiff
path: root/main/streams/mmap.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-02-23 22:41:05 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-02-23 22:41:05 +0000
commit8aaafb1ae9a5a19953d2b40ed7c6ae1bebb38add (patch)
tree4d117cb9ff3072e05644b4e48b3e594a63c391b4 /main/streams/mmap.c
parentf21ab2f60f15e68571633625e399ff306878ca0d (diff)
downloadphp-git-8aaafb1ae9a5a19953d2b40ed7c6ae1bebb38add.tar.gz
Increase maximum mmapable file size to 2mb from 1mb.
Diffstat (limited to 'main/streams/mmap.c')
-rw-r--r--main/streams/mmap.c2
1 files changed, 1 insertions, 1 deletions
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;
}