1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00
Files
archived-php-src/sapi/phpdbg/tests/stdin_001.phpt
Bob Weinand 5aae01104f Add stdin command and -s command line parameter to phpdbg
This allows reading the initial script file from stdin instead of being forced to put the script into a file in order to run it with phpdbg.
Especially important for programmatic execution of phpdbg.

Also adding tests/include_once.phpt and tests/set_exception_handler.phpt as I seem to have forgotten to git add them sometime long ago...
2016-10-12 20:15:49 +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>