php-src/sapi/phpdbg/tests/next_001.phpt
Nikita Popov 6baaccc9b6 Merge branch 'PHP-7.0' into PHP-7.1
(cherry picked from commit 9669ec707a)
2016-10-14 01:53:25 +02:00

38 lines
690 B
PHP

--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 null %s]
>00005: }
00006:
00007: foo();
prompt> [L8 %s ECHO 1 %s]
>00008: echo 1;
00009:
prompt> 1
[L9 %s RETURN 1 %s]
>00009:
prompt>
--FILE--
<?php
function foo() {
echo 0;
}
foo();
echo 1;