安装

要使用这些函数,必须编译支持 readline 的 PHP 的 CGI 或者 CLI 版本。需要配置 PHP --with-readline[=DIR]。如果想使用 libedit 代替 readline,配置 PHP --with-libedit[=DIR]

在 Windows 上,此扩展自 PHP 7.1.0 起默认可用。

add a note add a note

User Contributed Notes 2 notes

up
-16
kevin_tm at yahoo dot com
8 years ago
If you missed that argument when initially installing php5 and want to add it after the fact, this is all you need:

sudo apt-get install php5-readline
up
-25
rs at income dot cz
9 years ago
Use dotdeb. It's like 1 minute work.

Follow https://www.dotdeb.org/instructions/

Do only points 1,3,4 (omit 2)

and then
sudo apt-get install php5-readline
To Top