|  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: -
From: Assigned:
Status: Open Package: CGI/CLI related
PHP Version: master-Git-2018-08-03 (Git) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
34 - 6 = ?
Subscribe to this entry?

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

    $ ./configure --disable-all --with-readline=shared
    $ make
    $ sapi/cli/php -d extension=modules/ -a
    Interactive mode enabled

    php >

    $ configure --disable-all --enable-cli
    $ nmake
    $ x64\Release_TS\php -a
    Interactive shell

See also bug #70543.

[1] <>


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jul 25 00:01:23 2021 UTC