Increase maximum mmapable file size to 2mb from 1mb.

This commit is contained in:
Ilia Alshanetsky 2005-02-23 22:41:05 +00:00
parent f21ab2f60f
commit 8aaafb1ae9

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