针对命令行的扩展
在线手册:中文  英文

GNU Readline


针对命令行的扩展
在线手册:中文  英文

用户评论:

list2011 at lunch dot za dot net (2012-02-02 10:11:54)

When readline is enabled, php switches the terminal mode to accept line-buffered input. This means that the proper way to use the cli when you pipe to an interactive command is to explicitly specify that php is not using the terminal for input:
php somescript.php < /dev/null | less

易百教程