mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix GH-15208: Segfault with breakpoint map and phpdbg_clear()
This commit is contained in:
4
NEWS
4
NEWS
@@ -25,6 +25,10 @@ PHP NEWS
|
||||
. Fixed bug GH-16879 (JIT dead code skipping does not update call_level).
|
||||
(nielsdos)
|
||||
|
||||
- PHPDBG:
|
||||
. Fixed bug GH-15208 (Segfault with breakpoint map and phpdbg_clear()).
|
||||
(nielsdos)
|
||||
|
||||
- Windows:
|
||||
. Fixed bug GH-16849 (Error dialog causes process to hang). (cmb)
|
||||
. Windows Server 2025 is now properly reported. (cmb)
|
||||
|
||||
@@ -370,6 +370,7 @@ PHP_FUNCTION(phpdbg_clear)
|
||||
zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_OPLINE]);
|
||||
zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE]);
|
||||
zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_METHOD]);
|
||||
zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_MAP]);
|
||||
zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_COND]);
|
||||
} /* }}} */
|
||||
|
||||
|
||||
15
sapi/phpdbg/tests/gh15208.phpt
Normal file
15
sapi/phpdbg/tests/gh15208.phpt
Normal file
@@ -0,0 +1,15 @@
|
||||
--TEST--
|
||||
GH-15208 (Segfault with breakpoint map and phpdbg_clear())
|
||||
--PHPDBG--
|
||||
r
|
||||
q
|
||||
--FILE--
|
||||
<?php
|
||||
phpdbg_break_method("foo", "bar");
|
||||
phpdbg_clear();
|
||||
?>
|
||||
--EXPECTF--
|
||||
[Successful compilation of %s]
|
||||
prompt> [Breakpoint #0 added at foo::bar]
|
||||
[Script ended normally]
|
||||
prompt>
|
||||
Reference in New Issue
Block a user