php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71076 REPL arrow history navigation problem
Submitted: 2015-12-09 21:06 UTC Modified: 2015-12-19 13:31 UTC
From: miraagewow at gmail dot com Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 7.0.0 OS: Ubuntu 14.04
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: miraagewow at gmail dot com
New email:
PHP Version: OS:

 

 [2015-12-09 21:06 UTC] miraagewow at gmail dot com
Description:
------------
"php -a" and other REPLs (e.g. Psysh) are having issues with history navigation.
Once some command is entered, arrow history navigation results in (example for up/down arrows):

^[[A^[[B


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-10 00:57 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2015-12-10 00:57 UTC] rasmus@php.net
Looks ok here on Ubuntu and Debian. How did you build your PHP 7? Did you compile in readline support?
 [2015-12-10 09:28 UTC] miraagewow at gmail dot com
I've installed from famous PPA https://launchpad.net/~ondrej/+archive/ubuntu/php-7.0
 [2015-12-19 13:31 UTC] miraagewow at gmail dot com
-Status: Feedback +Status: Closed
 [2015-12-19 13:31 UTC] miraagewow at gmail dot com
Solution was found. I was missing php-readline extensions. After I've installed it - works awesome.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 19:01:36 2025 UTC