summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-12-26 11:52:39 +0400
committerDmitry Stogov <dmitry@zend.com>2013-12-26 11:52:39 +0400
commit0ff0e82f26fcae352007c08873ab408c12948ad9 (patch)
tree6b29aad8822f2f4e693eea3ff7f5f5dc0a435d76 /Zend/zend_alloc.c
parent1e411ebdf5fa56fa8f8870d22a5bdd21c54caf69 (diff)
parent6414fe283e3931d87416a155f4cfbaaf5ffca1ad (diff)
downloadphp-git-0ff0e82f26fcae352007c08873ab408c12948ad9.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Fixed ZEND_MM_MEM_TYPE=mmap_zero Conflicts: NEWS
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) {