Debian Bug report logs -
#286356
PHP refuses a command line background execution (& or cron)
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Adam Conrad <adconrad@0c3.net>:
Bug#286356; Package php4-cli.
(full text, mbox, link).
Acknowledgement sent to Frédéric Bouyer <f.bouyer@illys.com>:
New Bug report received and forwarded. Copy sent to Adam Conrad <adconrad@0c3.net>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: php4-cli
Version: 4.3.9-2 (also in 4.3.9-1)
Severity: important
php4-cli refuses to run in background. It will work neither with a '&' background execution order nor with cron.
Just try at the command line:
>php -v
It works fine.
Now try:
> php -v &
It will answer:
[1] 390
[1]+ Stopped php -v
and the status of the process goes to T. It will restart only with the 'bg' command.
cron does not work as well.
Of course if any PHP script ('php toto.php &' or './toto.php &') is called the same way, it gets stopped as well.
I am using Debian GNU/Linux with kernel 2.4.18-bf2.4. php4-common is 4.3.9.2 (the problem also exists with 4.3.9.1 - I have upgraded because of this).
PS: I am not the only one having this problem: http://bugs.php.net/bug.php?id=30361&edit=1
[Message part 2 (text/html, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Adam Conrad <adconrad@0c3.net>:
Bug#286356; Package php4-cli.
(full text, mbox, link).
Acknowledgement sent to Wim Heirman <wim.heirman@elis.ugent.be>:
Extra info received and forwarded to list. Copy sent to Adam Conrad <adconrad@0c3.net>.
(full text, mbox, link).
Message #10 received at 286356@bugs.debian.org (full text, mbox, reply):
Package: php4-cli
Version: 4:4.3.10-2
Followup-For: Bug #286356
The problem seems to be the using_history() function of libedit, a readline replacement. I've posted a bug report for them
(http://sourceforge.net/tracker/?atid=118314&group_id=18314&func=browse).
Readline does not have this problem, so if php4 would just be configured with --with-readline instead of --with-libedit, our problem would be solved. (Why is
the non-GNU libedit used anyway?)
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages php4-cli depends on:
ii libbz2-1.0 1.0.2-2 high-quality block-sorting file co
ii libc6 2.3.2.ds1-19 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-17 Berkeley v4.2 Database Libraries [
ii libedit2 2.9.cvs.20040827-1 BSD editline and history libraries
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii libmagic1 4.12-1 File type determination library us
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii php4-common 4:4.3.10-2 Common files for packages built fr
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Adam Conrad <adconrad@0c3.net>:
Bug#286356; Package php4-cli.
(full text, mbox, link).
Acknowledgement sent to "Adam Conrad" <adconrad@0c3.net>:
Extra info received and forwarded to list. Copy sent to Adam Conrad <adconrad@0c3.net>.
(full text, mbox, link).
Message #15 received at 286356@bugs.debian.org (full text, mbox, reply):
Wim Heirman wrote:
>
> Readline does not have this problem, so if php4 would just be
> configured with --with-readline instead of --with-libedit, our
> problem would be solved. (Why is the non-GNU libedit used anyway?)
Licensing issues. Readline is GPL, and we can't link with GPL libraries
without violating their license.
... Adam
Reply sent to Pawel Wiecek <coven@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Frédéric Bouyer <f.bouyer@illys.com>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #22 received at 286356-close@bugs.debian.org (full text, mbox, reply):
Source: libedit
Source-Version: 2.9.cvs.20050518-1
We believe that the bug you reported is fixed in the latest version of
libedit, which is due to be installed in the Debian FTP archive:
libedit-dev_2.9.cvs.20050518-1_i386.deb
to pool/main/libe/libedit/libedit-dev_2.9.cvs.20050518-1_i386.deb
libedit2_2.9.cvs.20050518-1_i386.deb
to pool/main/libe/libedit/libedit2_2.9.cvs.20050518-1_i386.deb
libedit_2.9.cvs.20050518-1.diff.gz
to pool/main/libe/libedit/libedit_2.9.cvs.20050518-1.diff.gz
libedit_2.9.cvs.20050518-1.dsc
to pool/main/libe/libedit/libedit_2.9.cvs.20050518-1.dsc
libedit_2.9.cvs.20050518.orig.tar.gz
to pool/main/libe/libedit/libedit_2.9.cvs.20050518.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 286356@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Pawel Wiecek <coven@debian.org> (supplier of updated libedit package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 18 May 2005 23:36:58 +0200
Source: libedit
Binary: libedit-dev libedit2
Architecture: source i386
Version: 2.9.cvs.20050518-1
Distribution: unstable
Urgency: low
Maintainer: Pawel Wiecek <coven@debian.org>
Changed-By: Pawel Wiecek <coven@debian.org>
Description:
libedit-dev - BSD editline and history libraries (development files)
libedit2 - BSD editline and history libraries
Closes: 286356
Changes:
libedit (2.9.cvs.20050518-1) unstable; urgency=low
.
* Updated sources from CVS (closes: #286356)
Files:
8bd3418502c9cdb6d65bf224dc085ff9 676 libs optional libedit_2.9.cvs.20050518-1.dsc
ec0dff6f1e989b0c9f574c51d90477af 120004 libs optional libedit_2.9.cvs.20050518.orig.tar.gz
4ef4432ac3df738d4931f7476b29c49e 6881 libs optional libedit_2.9.cvs.20050518-1.diff.gz
fa78feae42ed29f7e92a3cafa6aba677 53824 libs optional libedit2_2.9.cvs.20050518-1_i386.deb
3cbc546f851daf20060d2700e6906294 68378 libdevel optional libedit-dev_2.9.cvs.20050518-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCi7XLBOdjEO/Bh3ARAir3AJ0XLBcl5uPi02MZni9Ss3REvMIB7wCfWE0r
mqwO/UjO6zTtYiDfmH2D4UY=
=bx4v
-----END PGP SIGNATURE-----
Bug unarchived.
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Thu, 01 May 2008 19:39:04 GMT) (full text, mbox, link).
Bug marked as found in version 2.9.cvs.20050518-4 and reopened.
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Thu, 01 May 2008 19:39:04 GMT) (full text, mbox, link).
Blocking bugs of 341868 added: 286356
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Thu, 01 May 2008 19:54:04 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(full text, mbox, link).
Acknowledgement sent to Aníbal Monsalve Salazar <anibal@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(full text, mbox, link).
Message #33 received at 286356@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thu, May 01, 2008 at 02:44:01PM -0500, Raphael Geissert wrote:
># Automatically generated email from bts, devscripts version 2.9.6
>block 341868 with 286356
Please try the new version 2.11~20080614-1
[signature.asc (application/pgp-signature, inline)]
Message #38 received at 286356-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
forwarded 286356 http://sourceforge.net/tracker/index.php?func=detail&aid=1090284&group_id=18314&atid=118314
thanks
On Monday 16 June 2008, Aníbal Monsalve Salazar wrote:
> On Thu, May 01, 2008 at 02:44:01PM -0500, Raphael Geissert wrote:
> ># Automatically generated email from bts, devscripts version 2.9.6
> >block 341868 with 286356
>
> Please try the new version 2.11~20080614-1
Just tried the latest package:
$ dpkg-query -W --showformat='${Version}\n' libedit2
2.11~20080614-1
$ cli-build/sapi/cli/php -r 'sleep(5);' &
[1] 13582
$
[1]+ Stopped cli-build/sapi/cli/php -r 'sleep(5);'
$ objdump -x cli-build/sapi/cli/php | g NEEDED | g edit
NEEDED libedit.so.2
Regards,
--
Atomo64 - Raphael
Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(Fri, 28 Jan 2011 17:39:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Clint Byrum <clint@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(Fri, 28 Jan 2011 17:39:06 GMT) (full text, mbox, link).
Message #43 received at 286356@bugs.debian.org (full text, mbox, reply):
This seems to be the same bug as has been noted here in Ubuntu:
https://launchpad.net/bugs/322214
I recently spent some time tracking down what happens in libedit vs.
readline and it seems that libedit always takes control of stdin during
php's module init phase call to using_history(), even if later it
decides that it shouldn't enable editting because stdout is not a
terminal.
I forwarded a patch along to the netbsd tech-userlevel mailing list,
http://mail-index.netbsd.org/tech-userlevel/2011/01/26/msg004486.html
It can also be seen as a patch to the ubuntu package here:
https://code.launchpad.net/~clint-fewbar/ubuntu/natty/libedit/fix-tty-handling/+merge/47591
I don't think it would be wise to patch libedit without upstream
accepting said patch. But the initial reaction is positive.
Information forwarded
to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(Fri, 02 Dec 2011 18:57:14 GMT) (full text, mbox, link).
Acknowledgement sent
to Clint Byrum <clint@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(Fri, 02 Dec 2011 18:57:14 GMT) (full text, mbox, link).
Message #48 received at 286356@bugs.debian.org (full text, mbox, reply):
Just as an FYI, the patch has been uploaded to Ubuntu precise, and I
think is worth pulling into Debian's version of libedit as well. Its no
surprise that NetBSD isn't responding to the fix since the problem only
affects Linux users.
Information forwarded
to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(Tue, 21 Feb 2012 16:09:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(Tue, 21 Feb 2012 16:09:04 GMT) (full text, mbox, link).
Message #53 received at 286356@bugs.debian.org (full text, mbox, reply):
> Can't we apply the same patches to the Debian packages? Are we waiting for
> the upstream maintainers to take action?
We can, but you are barking up the wrong tree here. You need to speak
with libedit maintainer.
O.
--
Ondřej Surý <ondrej@sury.org>
Information forwarded
to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(Tue, 21 Feb 2012 19:33:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Lior Kaplan <kaplan@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(Tue, 21 Feb 2012 19:33:07 GMT) (full text, mbox, link).
Message #58 received at 286356@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
2012/2/21 Ondřej Surý <ondrej@debian.org>
> > Can't we apply the same patches to the Debian packages? Are we waiting
> for
> > the upstream maintainers to take action?
>
> We can, but you are barking up the wrong tree here. You need to speak
> with libedit maintainer.
>
Anibal, could you take a look at #286356 ?
Kaplan
[Message part 2 (text/html, inline)]
Added indication that bug 286356 blocks 576218
Request was from Ondřej Surý <ondrej@debian.org>
to control@bugs.debian.org.
(Thu, 23 Aug 2012 09:51:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(Thu, 07 Feb 2013 13:33:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Ondřej Surý <ondrej@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(Thu, 07 Feb 2013 13:33:06 GMT) (full text, mbox, link).
Message #65 received at 286356@bugs.debian.org (full text, mbox, reply):
Just FYI: I am going to NMU this bug as soon we are unfrozen again.
The fix has been available for two years now and the interactive mode
is requested feature by many of our PHP users.
Ondrej
On Tue, Feb 21, 2012 at 8:31 PM, Lior Kaplan <kaplan@debian.org> wrote:
> 2012/2/21 Ondřej Surý <ondrej@debian.org>
>>
>> > Can't we apply the same patches to the Debian packages? Are we waiting
>> > for
>> > the upstream maintainers to take action?
>>
>> We can, but you are barking up the wrong tree here. You need to speak
>> with libedit maintainer.
>
>
> Anibal, could you take a look at #286356 ?
>
> Kaplan
--
Ondřej Surý <ondrej@sury.org>
Information forwarded
to debian-bugs-dist@lists.debian.org, Anibal Monsalve Salazar <anibal@debian.org>:
Bug#286356; Package libedit2.
(Thu, 07 Feb 2013 15:03:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Lior Kaplan <kaplan@debian.org>:
Extra info received and forwarded to list. Copy sent to Anibal Monsalve Salazar <anibal@debian.org>.
(Thu, 07 Feb 2013 15:03:03 GMT) (full text, mbox, link).
Message #70 received at 286356@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Fair enough... maybe uploading to experimental in the meantime ?
Kaplan
On Thu, Feb 7, 2013 at 3:27 PM, Ondřej Surý <ondrej@debian.org> wrote:
> Just FYI: I am going to NMU this bug as soon we are unfrozen again.
> The fix has been available for two years now and the interactive mode
> is requested feature by many of our PHP users.
>
> Ondrej
>
> On Tue, Feb 21, 2012 at 8:31 PM, Lior Kaplan <kaplan@debian.org> wrote:
> > 2012/2/21 Ondřej Surý <ondrej@debian.org>
> >>
> >> > Can't we apply the same patches to the Debian packages? Are we waiting
> >> > for
> >> > the upstream maintainers to take action?
> >>
> >> We can, but you are barking up the wrong tree here. You need to speak
> >> with libedit maintainer.
> >
> >
> > Anibal, could you take a look at #286356 ?
> >
> > Kaplan
>
>
>
> --
> Ondřej Surý <ondrej@sury.org>
>
[Message part 2 (text/html, inline)]
Reply sent
to Ondřej Surý <ondrej@debian.org>:
You have taken responsibility.
(Tue, 05 Mar 2013 15:30:05 GMT) (full text, mbox, link).
Notification sent
to Frédéric Bouyer <f.bouyer@illys.com>:
Bug acknowledged by developer.
(Tue, 05 Mar 2013 15:30:05 GMT) (full text, mbox, link).
Message #75 received at 286356-done@bugs.debian.org (full text, mbox, reply):
Version: 2.11-20080614-4
Funny, it would actually help if you close the fixed bugs...
libedit (2.11-20080614-4) unstable; urgency=low
* Merge 2.11-20080614-3ubuntu2
- Fix libdir in libedit.pc to match multiarch installation paths.
- libedit/tty.c: grabs controlling terminal even when output is a non
tty, causing things like php | less to mis-function. Patch changes
this behavior to work more like readline. (LP: #322214)
[...]
-- Anibal Monsalve Salazar <anibal@debian.org> Thu, 31 May 2012 13:56:17 +1000
Now we cannot fix this bug in PHP for wheezy users :(.
O.
On Thu, Feb 7, 2013 at 3:59 PM, Lior Kaplan <kaplan@debian.org> wrote:
> Fair enough... maybe uploading to experimental in the meantime ?
>
> Kaplan
>
>
> On Thu, Feb 7, 2013 at 3:27 PM, Ondřej Surý <ondrej@debian.org> wrote:
>>
>> Just FYI: I am going to NMU this bug as soon we are unfrozen again.
>> The fix has been available for two years now and the interactive mode
>> is requested feature by many of our PHP users.
>>
>> Ondrej
>>
>> On Tue, Feb 21, 2012 at 8:31 PM, Lior Kaplan <kaplan@debian.org> wrote:
>> > 2012/2/21 Ondřej Surý <ondrej@debian.org>
>> >>
>> >> > Can't we apply the same patches to the Debian packages? Are we
>> >> > waiting
>> >> > for
>> >> > the upstream maintainers to take action?
>> >>
>> >> We can, but you are barking up the wrong tree here. You need to speak
>> >> with libedit maintainer.
>> >
>> >
>> > Anibal, could you take a look at #286356 ?
>> >
>> > Kaplan
>>
>>
>>
>> --
>> Ondřej Surý <ondrej@sury.org>
>
>
--
Ondřej Surý <ondrej@sury.org>
Changed Bug submitter to 'Frédéric Bouyer <f.bouyer@illys.com>' from 'Frédéric Bouyer <f.bouyer@illys.com>'
Request was from Don Armstrong <don@debian.org>
to control@bugs.debian.org.
(Thu, 21 Mar 2013 21:27:11 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 19 Apr 2013 07:28:40 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 00:28:37 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.