略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Readline

2024-12-22

GNU Readline

add a noteadd a note

User Contributed Notes 1 note

up
0
list2011 at lunch dot za dot net
10 years ago
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

官方地址:https://www.php.net/manual/en/book.readline.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3