--- embedaddon/php/Zend/zend_stream.c 2012/05/29 12:34:36 1.1.1.2 +++ embedaddon/php/Zend/zend_stream.c 2013/07/22 01:32:16 1.1.1.3 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ - | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) | + | Copyright (c) 1998-2013 Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend license, | | that is bundled with this package in the file LICENSE, and is | @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_stream.c,v 1.1.1.2 2012/05/29 12:34:36 misho Exp $ */ +/* $Id: zend_stream.c,v 1.1.1.3 2013/07/22 01:32:16 misho Exp $ */ #include "zend.h" @@ -79,7 +79,7 @@ static size_t zend_stream_stdio_fsizer(void *handle TS static void zend_stream_unmap(zend_stream *stream TSRMLS_DC) { /* {{{ */ #if HAVE_MMAP if (stream->mmap.map) { - munmap(stream->mmap.map, stream->mmap.len); + munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); } else #endif if (stream->mmap.buf) {