Bug #81033 [Opn->Fbk]: "Interactive Mode" Shell Hangs Indefinitely
Edit report at https://bugs.php.net/bug.php?id=81033&edit=1
ID: 81033
Updated by: requinix@php.net
Reported by: security at paragonie dot com
-Summary: Interactive Shell Hangs Indefinitely
+Summary: "Interactive Mode" Shell Hangs Indefinitely
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Ubuntu Linux
PHP Version: master-Git-2021-05-12 (Git)
Block user comment: N
Private report: N
New Comment:
"Interactive mode enabled" means that it is reading from stdin but does not give you a
full shell. The prompt you're expecting comes after an "Interactive shell" message.
Did you build with readline support? I don't see a --with-readline in your configure command.
Or anything else, for that matter.
And just in case, what commit did you build from? Was it HEAD within the last ~16 hours?
Previous Comments:
------------------------------------------------------------------------
[2021-05-12 01:15:48] security at paragonie dot com
Description:
------------
Currently, I get the following result when I try to start an interactive session:
$ php -a
Interactive mode enabled
...but it hangs forever without prompting at all.
Using php -r works as expected:
$ php -r "echo 'hello world', PHP_EOL;"
$ php -v
PHP 8.1.0-dev (cli) (built: May 11 2021 21:07:43) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0-dev, Copyright (c) Zend Technologies
The output of php -r "phpinfo();" is provided for completeness, although I do
not think it's a configuration issue: https://gist.github.com/paragonie-security/92571c1121e4b16e019a82e810643bf6
Test script:
---------------
N/A just run php -a after building from master
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81033&edit=1
Thread (7 messages)