mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
It crashes because it's gonna try accessing the breakpoint which was cleared by user code in `phpdbg_clear();`. Not all breakpoint data was properly cleaned. Closes GH-16953.
16 lines
269 B
PHP
16 lines
269 B
PHP
--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>
|