Bug #76699 [Opn->Csd]: Interactive mode vs. shell confusion
Edit report at https://bugs.php.net/bug.php?id=76699&edit=1
ID: 76699
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: Interactive mode vs. shell confusion
-Status: Open
+Status: Closed
Type: Bug
Package: CGI/CLI related
Operating System: *
PHP Version: master-Git-2018-08-03 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This is apparently resolved by
<https://github.com/php/php-src/commit/959e5787bdf7c088a57dce5f4f7570abd7fe35f8>.
Previous Comments:
------------------------------------------------------------------------
[2018-08-03 14:49:13] cmb@php.net
Description:
------------
When running php -a it is supposed to either print "Interactive
shell" or "Interactive mode enabled" depending on readline/libedit
support. However, this is determined during compile time[1], and
as such can't work reliably, since we can't know whether a shared
extension will actually be available or not.
Linux:
$ ./configure --disable-all --with-readline=shared
$ make
$ sapi/cli/php -d extension=modules/readline.so -a
Interactive mode enabled
php >
Windows:
$ configure --disable-all --enable-cli
$ nmake
$ x64\Release_TS\php -a
Interactive shell
See also bug #70543.
[1] <https://github.com/php/php-src/blob/ab8094c/sapi/cli/php_cli.c#L918-L922>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76699&edit=1
Thread (2 messages)