Skip to content

Commit 8cc7e2a

Browse files
committed
Revert "Don't report mmap failure if it is expected"
This reverts commit 446b5b1.
1 parent 7728160 commit 8cc7e2a

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
@@ -432,7 +432,7 @@ static void *zend_mm_mmap_fixed(void *addr, size_t size)
432432
void *ptr = mmap(addr, size, PROT_READ | PROT_WRITE, flags /*| MAP_POPULATE | MAP_HUGETLB*/, -1, 0);
433433

434434
if (ptr == MAP_FAILED) {
435-
#if ZEND_MM_ERROR && !defined(MAP_FIXED_NOREPLACE) && !defined(MAP_EXCL)
435+
#if ZEND_MM_ERROR
436436
fprintf(stderr, "\nmmap() failed: [%d] %s\n", errno, strerror(errno));
437437
#endif
438438
return NULL;

0 commit comments

Comments
 (0)