We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20b7adb + 242658c commit 6c7c2d0Copy full SHA for 6c7c2d0
Zend/zend_stream.c
@@ -79,7 +79,7 @@ static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
79
static void zend_stream_unmap(zend_stream *stream TSRMLS_DC) { /* {{{ */
80
#if HAVE_MMAP
81
if (stream->mmap.map) {
82
- munmap(stream->mmap.map, stream->mmap.len);
+ munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
83
} else
84
#endif
85
if (stream->mmap.buf) {
0 commit comments