summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-12-26 11:51:32 +0400
committerDmitry Stogov <dmitry@zend.com>2013-12-26 11:51:32 +0400
commit6414fe283e3931d87416a155f4cfbaaf5ffca1ad (patch)
tree46407c367213b7bb7040127d554bae2c222bbe1c /Zend/zend_alloc.c
parent5b0620831c41687950f1f34a225bea060122b503 (diff)
downloadphp-git-6414fe283e3931d87416a155f4cfbaaf5ffca1ad.tar.gz
Fixed ZEND_MM_MEM_TYPE=mmap_zero
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index bf9d000437..c3d322aa8f 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -201,7 +201,7 @@ static int zend_mm_dev_zero_fd = -1;
static zend_mm_storage* zend_mm_mem_mmap_zero_init(void *params)
{
- if (zend_mm_dev_zero_fd != -1) {
+ if (zend_mm_dev_zero_fd == -1) {
zend_mm_dev_zero_fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
}
if (zend_mm_dev_zero_fd >= 0) {