summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/breakpoints_006.phpt
blob: fa6f0cdc5b2cf38e81a739368ed2759d728afad3 (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
--TEST--
Basic function breakpoints
--PHPDBG--
b foo
r
c
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Breakpoint #0 added at foo]
prompt> [Breakpoint #0 in foo() at %s:4, hits: 1]
>00004: 	var_dump($bar);
 00005: }
 00006: 
prompt> string(4) "test"
[Script ended normally]
prompt> 
--FILE--
<?php

function foo($bar) {
	var_dump($bar);
}

foo("test");