mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
Increase maximum mmapable file size to 2mb from 1mb.
This commit is contained in:
parent
f21ab2f60f
commit
8aaafb1ae9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user