Skip to content

Commit e5ca924

Browse files
committed
Fixes
1 parent d9de798 commit e5ca924

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_alloc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3613,6 +3613,7 @@ static size_t poison_gc(void)
36133613
static void poison_shutdown(bool full, bool silent)
36143614
{
36153615
zend_mm_heap *heap = AG(mm_heap);
3616+
ZEND_MM_UNPOISON_HEAP(heap);
36163617

36173618
void* (*_malloc)(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
36183619
void (*_free)(void* ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
@@ -3633,6 +3634,7 @@ static void poison_shutdown(bool full, bool silent)
36333634
if (!full) {
36343635
_zend_mm_set_custom_handlers_ex(heap, _malloc, _free, _realloc, _gc, _shutdown);
36353636
}
3637+
ZEND_MM_POISON_HEAP(heap);
36363638
}
36373639

36383640
static void poison_enable(zend_mm_heap *heap, char *parameters)

0 commit comments

Comments
 (0)