Bug #76699 [NEW]: Interactive mode vs. shell confusion

From: Date: Fri, 03 Aug 2018 14:49:13 +0000
Subject: Bug #76699 [NEW]: Interactive mode vs. shell confusion
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216560@lists.php.net to get a copy of this message
From:             cmb
Operating system: *
PHP version:      master-Git-2018-08-03 (Git)
Package:          CGI/CLI related
Bug Type:         Bug
Bug description:Interactive mode vs. shell confusion

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 bug report at https://bugs.php.net/bug.php?id=76699&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76699&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76699&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76699&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76699&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76699&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76699&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76699&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76699&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76699&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76699&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76699&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76699&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76699&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76699&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76699&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76699&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76699&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76699&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76699&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76699&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#216560) next »