php5-cli scripts not running in background, stays stopped.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Description: Ubuntu 10.04.3 LTS
Release: 10.04
php Version
=========
PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch (cli) (built: Dec 13 2011 18:45:32)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
Additional Modules
-------
readline
sysvsem
sysvshm
Example
=======
~$ cat script.php
<?php
for($i = 0; $i < 4; $i++) {
fwrite(STDOUT, $i.PHP_EOL);
sleep(3);
}
?>
~$ php script.php &
[1] 15825
~$
[1]+ Stopped php script.php
~$ fg
php script.php
0
1
2
3
~$
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: php5-cli 5.3.2-1ubuntu4.11
ProcVersionSign
Uname: Linux 2.6.32-37-generic i686
Architecture: i386
Date: Thu Dec 22 17:57:01 2011
ProcEnviron:
LANGUAGE=es_UY:en
PATH=(custom, user)
LANG=es_UY.UTF-8
SHELL=/bin/bash
SourcePackage: php5
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I agree that I would expect a Unix application to continue writing its output even when started in the background. But I am not sure whether what you are seeing is expected behaviour for a PHP application or not.
I'm setting this to Importance: Low as per https:/ /wiki.ubuntu. com/Bugs/ Importance as this is an unusual configuration unlikely to affect many people.
Before developers can look at this, we need to know whether this is a problem in Ubuntu's packaging of PHP or a problem with PHP itself. If the bug is definitely in PHP itself, then the best thing to do would be to file a bug with upstream directly at https:/ /bugs.php. net/ and then that bug can be linked to from here.
Are you able to determine the answer to this question? I suggest that you might start by building PHP directly from the upstream source and see if you can still reproduce the issue.