[Bug 322214] Re: php incorrectly opens stdin

2010-08-13 Thread Clint Byrum
** Changed in: php5 (Ubuntu)
   Status: Confirmed = Triaged

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2010-08-13 Thread Clint Byrum
Just to confirm, this is still present as of php5-cli 5.3.3-1ubuntu3

I've taken a good long look at this, and I am 99.9% sure that this is a
problem with libedit..

#include stdio.h
#include histedit.h

int main(int argc, char *argv[])
{
using_history();
printf(Some interesting info\n);
return 0;
}

This program, compiled with 'gcc test.c -ledit -o test'

Will produce the exact same effect when piped to less.

using_history() is called in the init function of the readline extension
at line 168 of ext/readline/readline.c

The reason this didn't break in the standard PHP build is most likely
that libedit wasn't used, as readline is an optional module.

I reported it here:

https://sourceforge.net/tracker/?func=detailaid=3044367group_id=18314atid=118314

But that tracker appears to be dead. Also sent report to the Debian
Maintainer, and will mark it as also affecting libedit. I tested it with
the GNU readline library's using_history(), and that did not exhibit the
same problem.

One possible workaround is to build readline as an extension, and not
load it by default. I suspect though that any packages that have php
scripts that need/want readline would be fairly broken then. Another
method is to have the readline extension make sure it lets go of the
terminal if libedit is used.

** Bug watch added: SourceForge.net Tracker #3044367
   http://sourceforge.net/support/tracker.php?aid=3044367

** Also affects: libedit (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: libedit (Ubuntu)
   Status: New = Triaged

** Summary changed:

- php incorrectly opens stdin
+ php (via libedit update_history()) incorrectly opens stdin

-- 
php (via libedit update_history()) incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2009-12-09 Thread Matthew James Goins
This bug, which is still present in Ubuntu Server 9.10, makes php
development on ubuntu much more difficult.

Piping long output streams into a pager is a standard part of any
developer's day-to-day work, and php usage from the command line is
essential to many users.

I'd like to see this bug made a higher priority, particularly since it
appears to be relatively simple in nature, and php's output is fine in
other gnu/linux distros. We shouldn't have to all rebuild our php
packages just to get the basics working properly.

Sorry to be so critical, but this bug has been around for almost a year,
and is very frustrating.

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2009-06-09 Thread Grugnog
This also breaks the ability to use php within bash complete -F
function code (used for shell auto-completion). I have attached a test
case (test instructions and expected/actual results are comments in the
file). I am using the Jaunty PHP - PHP 5.2.6-3ubuntu4.1 with Suhosin-
Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:35:05). I have tested with
the http://www.dotdeb.org/ PHP 5.3 rc2 build (which I am pretty sure
would use readline) and it functions correctly there.

For reference, the upstream issue where I discovered this behaviour is
at http://drupal.org/node/437568#comment-1640730

** Attachment added: autophptest_completion.sh
   http://launchpadlibrarian.net/27719677/autophptest_completion.sh

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2009-05-01 Thread Andreas Olsson
** Changed in: php5 (Ubuntu)
   Importance: Undecided = Low

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2009-04-24 Thread Gena01
I am also seeing this in Ubuntu Server 9.04 and php5-cli
5.2.6.dfsg.1-3ubuntu4

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2009-01-31 Thread Andreas Olsson
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.

** Changed in: php5 (Ubuntu)
   Status: New = Confirmed

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 322214] Re: php incorrectly opens stdin

2009-01-31 Thread Andreas Olsson
I suspect this bug might somehow be related to libedit, which was
(re)introduced into php5-cli in Hardy.

I downloaded the source packages of php on Hardy as well as on Jaunty,
removed --with-libedit from debian/rules and rebuilt the packages.
When I had installed the new binaries php -i | less worked just the
way you would expect it to.

-- 
php incorrectly opens stdin
https://bugs.launchpad.net/bugs/322214
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs