Debugging a php script with phpdbg, how can I read from some data from STDIN ?
I am debugging a php script foo.php. foo.php reads from a line from STDIN when executed. I want to stepwise execute it with phpdbg.
I tried that
$ phpdbg foo.php
phpdbg> run < data.txt
but it doesn't work. data.txt contains some lines that I want to read from STDIN. Any suggestions?