Skip to content

Commit 0ff0e82

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Fixed ZEND_MM_MEM_TYPE=mmap_zero Conflicts: NEWS
2 parents 1e411eb + 6414fe2 commit 0ff0e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int zend_mm_dev_zero_fd = -1;
201201

202202
static zend_mm_storage* zend_mm_mem_mmap_zero_init(void *params)
203203
{
204-
if (zend_mm_dev_zero_fd != -1) {
204+
if (zend_mm_dev_zero_fd == -1) {
205205
zend_mm_dev_zero_fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
206206
}
207207
if (zend_mm_dev_zero_fd >= 0) {

0 commit comments

Comments
 (0)