xref: /PHP-7.4/sapi/phpdbg/tests/clear_001.phpt (revision b8534daa)
1--TEST--
2Test clearing breakpoints
3--INI--
4opcache.enable_cli=0
5--PHPDBG--
6b 4
7b foo
8r
9clear
10c
11i b
12q
13--EXPECTF--
14[Successful compilation of %s]
15prompt> [Breakpoint #0 added at %s:4]
16prompt> [Breakpoint #1 added at foo]
17prompt> 1
18[Breakpoint #0 at %s:4, hits: 1]
19>00004: echo 2;
20 00005: echo 3;
21 00006: foo();
22prompt> Clearing Breakpoints
23File              1
24Functions         1
25Methods           0
26Oplines           0
27File oplines      0
28Function oplines  0
29Method oplines    0
30Conditionals      0
31prompt> 234
32[Script ended normally]
33prompt> prompt>
34--FILE--
35<?php
36
37echo 1;
38echo 2;
39echo 3;
40foo();
41
42function foo() {
43	echo 4;
44}
45