Hey all, please remember that you can also use php -r to quickly evaluate expressions, e.g. generating a random password:
php -r 'var_dump(bin2hex(random_bytes(16)));' I'm in favor of removal without readline. Best, Niklas Rowan Tommins <rowan.coll...@gmail.com> schrieb am Mi., 12. Mai 2021, 22:46: > 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 > >