Re: Disable interactive mode (-a) if readline not available

From: Date: Wed, 12 May 2021 20:46:39 +0000
Subject: Re: Disable interactive mode (-a) if readline not available
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-114456@lists.php.net to get a copy of this message
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]

« previous php.internals (#114456) next »