Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3454b5c

Browse files
shutdown ZendMM observers during request shutdown
1 parent 0ed7968 commit 3454b5c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎Zend/zend_alloc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,6 +2269,10 @@ void zend_mm_shutdown(zend_mm_heap *heap, bool full, bool silent)
22692269
zend_mm_chunk *p;
22702270
zend_mm_huge_list *list;
22712271

2272+
if (full == false) {
2273+
zend_mm_observers_shutdown(heap);
2274+
}
2275+
22722276
#if ZEND_MM_CUSTOM
22732277
if (heap->use_custom_heap & ~ZEND_MM_CUSTOM_HEAP_OBSERVED) {
22742278
if (heap->custom_heap.std._malloc == tracked_malloc) {

‎main/main.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,9 +2341,6 @@ void php_module_shutdown(void)
23412341
return;
23422342
}
23432343

2344-
// we need to shutdown ZendMM observers before modules are unloaded
2345-
zend_mm_observers_shutdown(NULL);
2346-
23472344
zend_interned_strings_switch_storage(0);
23482345

23492346
#if ZEND_RC_DEBUG

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /