com php-src: Fixed ZEND_MM_MEM_TYPE=mmap_zero: NE WS Zend/zend_alloc.c

From: Date: Thu, 26 Dec 2013 07:51:32 +0000
Subject: com php-src: Fixed ZEND_MM_MEM_TYPE=mmap_zero: NE WS Zend/zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75467@lists.php.net to get a copy of this message
Commit: 6414fe283e3931d87416a155f4cfbaaf5ffca1ad Author: Dmitry Stogov <dmitry@zend.com> Thu, 26 Dec 2013 11:51:32 +0400 Parents: 5b0620831c41687950f1f34a225bea060122b503 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6414fe283e3931d87416a155f4cfbaaf5ffca1ad Log: Fixed ZEND_MM_MEM_TYPE=mmap_zero Changed paths: M NEWS M Zend/zend_alloc.c Diff: diff --git a/NEWS b/NEWS index 38659e6..eecd4e8 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ PHP NEWS . Disallowed JMP into a finally block. (Laruence) . Added validation of class names in the autoload process. (Dmitry) . Fixed invalid C code in zend_strtod.c. (Lior Kaplan) + . Fixed ZEND_MM_MEM_TYPE=mmap_zero. (Dmitry, Tony) . Fixed bug #66041 (list() fails to unpack yielded ArrayAccess object). (Nikita) . Fixed bug #65764 (generators/throw_rethrow FAIL with diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index bf9d000..c3d322a 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) {

« previous php.cvs (#75467) next »