Edit report at https://bugs.php.net/bug.php?id=60185&edit=1
ID: 60185
User updated by: s dot vijayarangan at gmail dot com
Reported by: s dot vijayarangan at gmail dot com
Summary: Unable to send the process to background, In PHP CLI
mode,
Status: Open
Type: Bug
Package: CGI/CLI related
Operating System: Cent OS 6 (64bit)
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
I have tried stty -tostop, still the same
[root@localhost ~]# stty -tostop
[root@localhost ~]# php /tmp/1.php &
[1] 7172
[root@localhost ~]#
[1]+ Stopped php /tmp/1.php
[root@localhost ~]#
Previous Comments:
------------------------------------------------------------------------
[2011-11-01 13:35:46] [email protected]
try:
$stty -tostop
?
------------------------------------------------------------------------
[2011-11-01 10:15:00] s dot vijayarangan at gmail dot com
Update package
------------------------------------------------------------------------
[2011-11-01 10:05:59] s dot vijayarangan at gmail dot com
Description:
------------
In centos running as
/usr/bin/php /tmp/test.php &
will make the process running in background. It's all working in 5.2.16 but in
5.3.8, it's not working.
It says
[1]+ Stopped php /tmp/test.php
But it's running properly without &
Test script:
---------------
<?php
$test = true;
$i =0;
while($test)
{
if($i++ > 10)
$test = false;
echo 'test';
sleep(1);
}
?>
Expected result:
----------------
The program must run in a background.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60185&edit=1