Skip to content

Commit 6c7c2d0

Browse files
committed
Merge branch 'PHP-5.4'
2 parents 20b7adb + 242658c commit 6c7c2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
7979
static void zend_stream_unmap(zend_stream *stream TSRMLS_DC) { /* {{{ */
8080
#if HAVE_MMAP
8181
if (stream->mmap.map) {
82-
munmap(stream->mmap.map, stream->mmap.len);
82+
munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
8383
} else
8484
#endif
8585
if (stream->mmap.buf) {

0 commit comments

Comments
 (0)