php-src/sapi/phpdbg/tests/stdin_001.phpt
Bob Weinand 11e7447e04 Merge branch 'PHP-7.0' into PHP-7.1
(cherry picked from commit 37ae5f3931)
2016-10-14 01:48:03 +02:00

25 lines
424 B
PHP

--TEST--
Test stdin input with breakpoints
--PHPDBG--
stdin foo
<?php
echo "Hello, world!\n";
foo
b 3
r
c
r
q
--EXPECTF--
prompt> [Successful compilation of stdin input]
prompt> [Breakpoint #0 added at -:3]
prompt> [Breakpoint #0 at -:3, hits: 1]
>00003: echo "Hello, world!\n";
00004:
prompt> Hello, world!
[Script ended normally]
prompt> [Breakpoint #0 at -:3, hits: 1]
>00003: echo "Hello, world!\n";
00004:
prompt>