Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a5e4433

Browse files
committedJul 25, 2023
fixup! Add additional information of the memory_limit exceeded error messages
1 parent 5394610 commit a5e4433

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎Zend/zend_alloc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,12 @@ static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_F
10121012
# if ZEND_DEBUG
10131013
__zend_filename, __zend_lineno,
10141014
# endif
1015-
heap->real_size, ZEND_MM_CHUNK_SIZE, (ZEND_DEBUG ? size : ZEND_MM_PAGE_SIZE * pages_count)
1015+
heap->real_size, ZEND_MM_CHUNK_SIZE,
1016+
# if ZEND_DEBUG
1017+
size
1018+
# else
1019+
ZEND_MM_PAGE_SIZE * pages_count
1020+
# endif
10161021
);
10171022

10181023
return NULL;

0 commit comments

Comments
 (0)
Please sign in to comment.