xref: /PHP-7.2/sapi/phpdbg/tests/next_001.phpt (revision 2b86a891)
1--TEST--
2Test next command on function boundaries
3--PHPDBG--
4b 4
5r
6n
7
8
9q
10--EXPECTF--
11[Successful compilation of %s]
12prompt> [Breakpoint #0 added at %s:4]
13prompt> [Breakpoint #0 at %s:4, hits: 1]
14>00004: 	echo 0;
15 00005: }
16 00006:
17prompt> 0
18[L5 %s RETURN<-1>              null                                                           %s]
19>00005: }
20 00006:
21 00007: foo();
22prompt> [L8 %s ECHO                    1                                                              %s]
23>00008: echo 1;
24 00009:
25prompt> 1
26[L9 %s RETURN<-1>              1                                                              %s]
27>00009:
28prompt>
29--FILE--
30<?php
31
32function foo() {
33	echo 0;
34}
35
36foo();
37echo 1;
38