mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix 'phpdbg --help' segfault on shutdown with USE_ZEND_ALLOC=0
This commit is contained in:
commit
7f3a2bc727
1 changed files with 0 additions and 6 deletions
|
@ -180,12 +180,6 @@ static PHP_MSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
|
|||
phpdbg_notice("Script ended normally");
|
||||
}
|
||||
|
||||
/* hack to restore mm_heap->use_custom_heap in order to receive memory leak info */
|
||||
if (use_mm_wrappers) {
|
||||
/* ASSUMING that mm_heap->use_custom_heap is the first element of the struct ... */
|
||||
*(int *) zend_mm_get_heap() = 0;
|
||||
}
|
||||
|
||||
if (PHPDBG_G(buffer)) {
|
||||
free(PHPDBG_G(buffer));
|
||||
PHPDBG_G(buffer) = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue