|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-12-14 14:12 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-12-14 14:12 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
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>