summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-02-23 22:41:05 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2005-02-23 22:41:05 (GMT)
commit8aaafb1ae9a5a19953d2b40ed7c6ae1bebb38add (patch)
tree4d117cb9ff3072e05644b4e48b3e594a63c391b4 /main
parentf21ab2f60f15e68571633625e399ff306878ca0d (diff)
downloadphp-8aaafb1ae9a5a19953d2b40ed7c6ae1bebb38add.tar.gz
Increase maximum mmapable file size to 2mb from 1mb.
Diffstat (limited to 'main')
-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 82bfa62..aa4320d 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;
}