php (via libedit using_history()) incorrectly opens stdin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libedit (Debian) |
Fix Released
|
Unknown
|
|||
libedit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
php5 (Ubuntu) |
Invalid
|
Low
|
Clint Byrum |
Bug Description
Binary package hint: php5
PHP appears to be opening stdin improperly. You can see the behavior by running:
$ 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
Related branches
- Marc Deslauriers: Needs Fixing
-
Diff: 63 lines (+31/-1)4 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/30-change-tty-handling.patch (+20/-0)
debian/patches/series (+1/-0)
Changed in php5 (Ubuntu): | |
importance: | Undecided → Low |
Changed in php5 (Ubuntu): | |
status: | Confirmed → Triaged |
summary: |
- php (via libedit update_history()) incorrectly opens stdin + php (via libedit using_history()) incorrectly opens stdin |
Changed in php5 (Ubuntu): | |
assignee: | nobody → Clint Byrum (clint-fewbar) |
Changed in libedit (Debian): | |
status: | Unknown → Confirmed |
Changed in libedit (Debian): | |
status: | Confirmed → Fix Released |
I can confirm this problem in Jaunty (5.2.6-2ubuntu5), Intrepid (5.2.6-2ubuntu4) and Hardy (5.2.4-2ubuntu5.4). Well, at least I can confirm the symptom.
The versions in Gutsy (5.2.3-1ubuntu6.4) and Dapper (5.1.2-1ubuntu3.12) seems to be working fine.