On 12/05/2021 17:21, Levi Morrison via internals wrote:
The interactive shell requires libedit or readline support, which
this build does not have.
Run php without -a to get an interactive mode instead.
Unless I'm missing something, the default CLI mode (php without -a) is
"interactive PHP" only if you consider "cat > foo.txt" to be an
"interactive editor". You can type a complete script (remembering to
start with "<?php"), hit Ctrl-D (if you happen to know that that means
"end of file") and it will execute it, then exit.
I too have been stung by accidentally triggering this mode without
readline enabled, and would be happy to see Nikita's patch merged.
Regards,
--
Rowan Tommins
[IMSoP]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php