File tree 2 files changed +35
-4
lines changed
2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -1764,16 +1764,16 @@ void phpdbg_execute_ex(zend_execute_data *execute_data) /* {{{ */
1764
1764
goto next ;
1765
1765
}
1766
1766
1767
- /* not while in conditionals */
1768
- phpdbg_print_opline_ex (execute_data , 0 );
1769
-
1770
1767
/* perform seek operation */
1771
1768
if ((PHPDBG_G (flags ) & PHPDBG_SEEK_MASK ) && !(PHPDBG_G (flags ) & PHPDBG_IN_EVAL )) {
1772
1769
/* current address */
1773
1770
zend_ulong address = (zend_ulong ) execute_data -> opline ;
1774
1771
1775
1772
if (PHPDBG_G (seek_ex ) != execute_data ) {
1776
- if (PHPDBG_G (flags ) & PHPDBG_IS_STEPPING ) {
1773
+ if (PHPDBG_G (seek_ex )-> prev_execute_data &&
1774
+ phpdbg_user_execute_data (PHPDBG_G (seek_ex )-> prev_execute_data ) == execute_data &&
1775
+ PHPDBG_G (flags ) & PHPDBG_IS_STEPPING ) {
1776
+ phpdbg_print_opline_ex (execute_data , 0 );
1777
1777
goto stepping ;
1778
1778
}
1779
1779
goto next ;
@@ -1819,6 +1819,9 @@ void phpdbg_execute_ex(zend_execute_data *execute_data) /* {{{ */
1819
1819
}
1820
1820
}
1821
1821
1822
+ /* not while in conditionals */
1823
+ phpdbg_print_opline_ex (execute_data , 0 );
1824
+
1822
1825
if (PHPDBG_G (flags ) & PHPDBG_IS_STEPPING && (PHPDBG_G (flags ) & PHPDBG_STEP_OPCODE || execute_data -> opline -> lineno != PHPDBG_G (last_line ))) {
1823
1826
stepping :
1824
1827
PHPDBG_G (flags ) &= ~PHPDBG_IS_STEPPING ;
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Test next command step over functionality
3
+ --PHPDBG--
4
+ b 7
5
+ r
6
+ n
7
+ q
8
+ --EXPECTF--
9
+ [Successful compilation of %s]
10
+ prompt> [Breakpoint #0 added at %s:7]
11
+ prompt> [Breakpoint #0 at %s:7, hits: 1]
12
+ >00007: foo();
13
+ 00008: echo 1;
14
+ 00009:
15
+ prompt> 0
16
+ [L8 %s ECHO 1 %s]
17
+ >00008: echo 1;
18
+ 00009:
19
+ prompt>
20
+ --FILE--
21
+ <?php
22
+
23
+ function foo () {
24
+ echo 0 ;
25
+ }
26
+
27
+ foo ();
28
+ echo 1 ;
You can’t perform that action at this time.
0 commit comments