[Bug 322214] [NEW] php incorrectly opens stdin

Edward Z. Yang edwardzyang at thewritingpot.com
Wed Jan 28 08:30:38 GMT 2009

Public bug reported:

Binary package hint: php5

PHP appears to be opening stdin improperly. You can see the behavior by

$ php -i | less

Notice how less does not redraw the screen correctly, and pressing the
up or down arrow keys results in ^[OB being written to the bottom of the
screen. I think that this is because of a race condition between php and
less. The following command does not have the problem:

$ php -i < /dev/null | less

This has been reproduced on Ubuntu 8.10 Intrepid as well as a clean
Ubuntu 8.04 Hardy machine (with php-cli installed first, of course). It
could not be reproduced on Debian 4.0 etch, or a minimal, clean build of
PHP 5.2 off of the CVS source tree (on intrepid). I suspect one of
Ubuntu's patches is causing this problem, but I don't know which.

The PHP package version is 5.2.6-2ubuntu4

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

php incorrectly opens stdin
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

More information about the Ubuntu-server-bugs mailing list