summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/phpdbg_break_next.phpt
blob: b129b6780ad6f0c6ae66ebeae98fdadc33b81f94 (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
--TEST--
Test phpdbg_break_next() function
--SKIPIF--
<?php
if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size')) {
    die('xfail breakpoint/watchpoint issues with JIT on Windows');
}
?>
--PHPDBG--
r
c
q
--EXPECTF--
[Successful compilation of %s]
prompt> A
[Breakpoint #0 added at %s]
[Breakpoint #0 in %s at %s:5, hits: 1]
>00005: echo 'B';
 00006: 
prompt> B
[Script ended normally]
prompt> 
--FILE--
<?php

echo 'A';
phpdbg_break_next();
echo 'B';