summaryrefslogtreecommitdiff
path: root/Zend/zend_stream.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-08-02 12:32:44 +0800
committerXinchen Hui <laruence@php.net>2012-08-02 12:32:44 +0800
commit242658c053f505dfd3f307cea348867beee450ee (patch)
tree0fe6b8c447bc506c94e00cf18f1c5705c89cbaee /Zend/zend_stream.c
parentce92857131e24bf1c06b798b424367c6ce9dabcd (diff)
parent433089ccb4d4747a01d522e8678664ff17584615 (diff)
downloadphp-git-242658c053f505dfd3f307cea348867beee450ee.tar.gz
Merge branch 'PHP-5.3' into PHP-5.4
Diffstat (limited to 'Zend/zend_stream.c')
-rw-r--r--Zend/zend_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c
index 27df9537af..30cc3a5ba4 100644
--- a/Zend/zend_stream.c
+++ b/Zend/zend_stream.c
@@ -79,7 +79,7 @@ static size_t zend_stream_stdio_fsizer(void *handle TSRMLS_DC) /* {{{ */
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) {