php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76699 Interactive mode vs. shell confusion
Submitted: 2018-08-03 14:49 UTC Modified: 2021-12-14 14:12 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: CGI/CLI related
PHP Version: master-Git-2018-08-03 (Git) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2018-08-03 14:49 UTC] 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>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-12-14 14:12 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC