Bug 1030295 - php cli problem
Summary: php cli problem
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: php
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Remi Collet
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-14 10:04 UTC by A.Kuroki
Modified: 2021-01-14 09:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-31 01:05:42 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
PHP Bug Tracker 65714 0 None None None Never
PHP Bug Tracker 66412 0 None None None Never

Description A.Kuroki 2013-11-14 10:04:54 UTC
Description of problem:
php script at command line cannot be executed. In a background task.

Version-Release number of selected component (if applicable):
php-cli-5.3.3-22.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. create PHP script file
2. start background task

Actual results:

1. create PHP script
#!/usr/bin/php
<?php
 echo "AAA\n";
?>

2. start background task
# php aaa.php &
[2] 1744
# 

[2]+  Stopped                 php aaa.php

Expected results:

2. start background task
# php aaa.php &
[2] 1744
# 
AAA
[2]+  Stopped                 php aaa.php

Additional info:

#strace php aaa.php &
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = ? ERESTARTSYS (To be restarted)
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = ? ERESTARTSYS (To be restarted)
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = ? ERESTARTSYS (To be restarted)
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---

The same problem?
[PHP-DEV] PHP CLI setting cooked terminal mode
http://www.serverphorums.com/read.php?7,782444

Comment 2 Joe Orton 2013-11-15 09:10:11 UTC
Thanks for reporting this issue to us.  If this issue is critical or in any way time sensitive, please raise a ticket through your regular Red Hat support channels to make certain it receives the proper attention and prioritization to assure a timely resolution.

For information on how to contact the Red Hat production support team, please
visit: https://www.redhat.com/support/process/production/#howto

Comment 3 RHEL Program Management 2013-11-18 09:15:29 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 6 Remi Collet 2014-03-21 14:51:44 UTC
65714 fix upstream in 5.5.7
66412 fix upstream in 5.5.9

Not fixed in upstream 5.3 or 5.4

So rhel-7, rhscl/php54, rhscl/php55 are also affected

Comment 7 Remi Collet 2014-03-21 15:01:46 UTC
Additional notice: "nohup php aaa.php &" is a possible workaround

Comment 11 RHEL Program Management 2014-10-31 01:05:42 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.