Skip to content

Commit 272cccd

Browse files
committed
Fix phpdbg_break_next()
1 parent 2b9c7f8 commit 272cccd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ PHP NEWS
3232
. Fixed bug #70232 (Incorrect bump-along behavior with \K and empty string
3333
match). (cmb)
3434

35+
- Phpdbg:
36+
. Fix phpdbg_break_next() sometimes not breaking. (Bob)
37+
3538
- SPL:
3639
. Fixed bug #70290 (Null pointer deref (segfault) in spl_autoload via
3740
ob_start). (hugh at allthethings dot co dot nz)

sapi/phpdbg/phpdbg_bp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,7 @@ PHPDBG_API void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline TSRML
687687

688688
PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE);
689689
new_break.opline = (zend_ulong) opline;
690+
new_break.base = NULL;
690691

691692
zend_hash_index_update(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE],
692693
(zend_ulong) opline, &new_break, sizeof(phpdbg_breakline_t), NULL);

0 commit comments

Comments
 (0)