Skip to content

Commit 6685414

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix 'phpdbg --help' segfault on shutdown with USE_ZEND_ALLOC=0
2 parents 594221f + 0cd3ebf commit 6685414

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ PHP NEWS
5757
. Add missing filter cleanups on phar failure. (nielsdos)
5858
. Fixed bug GH-18642 (Signed integer overflow in ext/phar fseek). (nielsdos)
5959

60+
- PHPDBG:
61+
. Fix 'phpdbg --help' segfault on shutdown with USE_ZEND_ALLOC=0. (nielsdos)
62+
6063
- PGSQL:
6164
. Fix warning not being emitted when failure to cancel a query with
6265
pg_cancel_query(). (Girgias)

sapi/phpdbg/phpdbg.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ static PHP_MSHUTDOWN_FUNCTION(phpdbg) /* {{{ */
180180
phpdbg_notice("Script ended normally");
181181
}
182182

183-
/* hack to restore mm_heap->use_custom_heap in order to receive memory leak info */
184-
if (use_mm_wrappers) {
185-
/* ASSUMING that mm_heap->use_custom_heap is the first element of the struct ... */
186-
*(int *) zend_mm_get_heap() = 0;
187-
}
188-
189183
if (PHPDBG_G(buffer)) {
190184
free(PHPDBG_G(buffer));
191185
PHPDBG_G(buffer) = NULL;

0 commit comments

Comments
 (0)