Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-14 Thread Niklas Keller
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 schrieb am Mi., 12. Mai 2021, 22:46: > On 12/05/2021 17

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Rowan Tommins
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 "interact

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Levi Morrison via internals
On Wed, May 12, 2021 at 10:13 AM David Gebler wrote: > > On Wed, 12 May 2021, 09:13 Nikita Popov, wrote: > > > > > I think we would be better off disabling -a completely if readline is not > > available, and exit with a helpful error message. I've opened > > https://github.com/php/php-src/pull/69

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread David Gebler
On Wed, 12 May 2021, 09:13 Nikita Popov, wrote: > > I think we would be better off disabling -a completely if readline is not > available, and exit with a helpful error message. I've opened > https://github.com/php/php-src/pull/6976 to that effect. Does that sound > reasonable? > > Regards, > Nik

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Aaron Piotrowski
> On May 12, 2021, at 3:12 AM, Nikita Popov wrote: > > Hi internals, > > If the readline extension is enabled, PHP provides an interactive shell > under -a. If it is not enabled, it falls back to an "interactive mode" > (yes, the difference between "interactive shell" and "interactive mode" is

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Bob Weinand
> Am 12.05.2021 um 10:12 schrieb Nikita Popov : > > Hi internals, > > If the readline extension is enabled, PHP provides an interactive shell > under -a. If it is not enabled, it falls back to an "interactive mode" > (yes, the difference between "interactive shell" and "interactive mode" is > imp

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Moritz Friedrich
> Am 12.05.2021 um 10:12 schrieb Nikita Popov : > > Hi internals, > > If the readline extension is enabled, PHP provides an interactive shell > under -a. If it is not enabled, it falls back to an "interactive mode" > (yes, the difference between "interactive shell" and "interactive mode" is > i

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Nikita Popov
On Wed, May 12, 2021 at 11:44 AM Michelangelo van Dam wrote: > > > > On 12 May 2021, at 11:39, Pierre wrote: > > > > Le 12/05/2021 à 11:29, Joe Watkins a écrit : > >> Morning Nikita, > >> > >> +1 on the change to cli. > >> > >> It can't really be a default extension right now because readline >

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Joe Watkins
Morning, Still I think heavy use has to be the exception, especially heavy use where readline is not available (because it's questionably useful). Cheers Joe On Wed, 12 May 2021 at 11:39, Pierre wrote: > Le 12/05/2021 à 11:29, Joe Watkins a écrit : > > Morning Nikita, > > > > +1 on the change

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Michelangelo van Dam
> On 12 May 2021, at 11:39, Pierre wrote: > > Le 12/05/2021 à 11:29, Joe Watkins a écrit : >> Morning Nikita, >> >> +1 on the change to cli. >> >> It can't really be a default extension right now because readline license >> is not compatible: >> >> https://github.com/php/php-src/pull/3823 >

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Pierre
Le 12/05/2021 à 11:29, Joe Watkins a écrit : Morning Nikita, +1 on the change to cli. It can't really be a default extension right now because readline license is not compatible: https://github.com/php/php-src/pull/3823 Even without the license problem, I'm not convinced of the value of addin

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Joe Watkins
Morning Nikita, +1 on the change to cli. It can't really be a default extension right now because readline license is not compatible: https://github.com/php/php-src/pull/3823 Even without the license problem, I'm not convinced of the value of adding the dependency: Because of this long standing

Re: [PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Nikita Popov
On Wed, May 12, 2021 at 10:37 AM Moritz Friedrich wrote: > > > Am 12.05.2021 um 10:12 schrieb Nikita Popov : > > > > Hi internals, > > > > If the readline extension is enabled, PHP provides an interactive shell > > under -a. If it is not enabled, it falls back to an "interactive mode" > > (yes, t

[PHP-DEV] Disable interactive mode (-a) if readline not available

2021-05-12 Thread Nikita Popov
Hi internals, If the readline extension is enabled, PHP provides an interactive shell under -a. If it is not enabled, it falls back to an "interactive mode" (yes, the difference between "interactive shell" and "interactive mode" is important here). The interactive mode is simply an stdin input, wh