summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/next_001.phpt
blob: afc5133d253a8778601be24bb278897b4994e885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--TEST--
Test next command on function boundaries
--PHPDBG--
b 4
r
n


q
--EXPECTF--
[Successful compilation of %s]
prompt> [Breakpoint #0 added at %s:4]
prompt> [Breakpoint #0 at %s:4, hits: 1]
>00004: 	echo 0;
 00005: }
 00006: 
prompt> 0
[L5 %s RETURN<-1>              null                                                           %s]
>00005: }
 00006: 
 00007: foo();
prompt> [L8 %s ECHO                    1                                                              %s]
>00008: echo 1;
 00009: 
prompt> 1
[L9 %s RETURN<-1>              1                                                              %s]
>00009: 
prompt> 
--FILE--
<?php

function foo() {
	echo 0;
}

foo();
echo 1;