Edit report at http://bugs.php.net/bug.php?id=48125&edit=1
ID: 48125 Comment by: jonhattan at faita dot net Reported by: scot at wilcoxon dot org Summary: php-cli makes "less" command behave differently Status: Bogus Type: Bug Package: Unknown/Other Function Operating System: Linux Ubuntu 9.04 PHP Version: 5.2.9 Block user comment: N New Comment: It is a bug in ubuntu but does work for debian. A difference between ubuntu and debian php-cli's is that ubuntu one is compiled with libedit support. I don't know if this is the reason. Previous Comments: ------------------------------------------------------------------------ [2009-05-05 00:07:10] scot at wilcoxon dot org Documentation is needed of the option which makes php be compatible with pipes. I suspect Readline is performing initialization of the terminal despite no input being performed. The --interactive option probably forces such behavior, but the man page did not indicate the opposite of --interactive (--nointeractive did not change the problem). ------------------------------------------------------------------------ [2009-05-01 17:13:10] j...@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2009-04-30 20:57:46] scot at wilcoxon dot org Description: ------------ When php-cli is sending output to "less" it becomes necessary to press ENTER after commands. It happens both locally and through SSH. Reproduce code: --------------- --- >From manual page: features.commandline --- php -r 'print_r(get_defined_constants());' | less Expected result: ---------------- Output from command with ":" at bottom. Pressing "n" should start a new page. Actual result: -------------- Output from command with ":" at bottom. Pressing "n" does nothing until ENTER is pressed. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=48125&edit=1