Bug #72676 [Opn]: Test cli_process_title_unix fails on AIX
| From: | cmb@php.net | Date: | Tue, 26 Jul 2016 14:29:10 +0000 |
| Subject: | Bug #72676 [Opn]: Test cli_process_title_unix fails on AIX | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-202610@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72676&edit=1
ID: 72676
Updated by: cmb@php.net
Reported by: matthieu dot sarter dot external at atos dot net
Summary: Test cli_process_title_unix fails on AIX
Status: Open
Type: Bug
Package: Testing related
Operating System: AIX
PHP Version: 7.0.9
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks for the report and the patch.
Shouldn't the
13 in substr(PHP_OS, 0, 13) be a 3? Or is
*this* check required?
Previous Comments:
------------------------------------------------------------------------
[2016-07-26 13:09:09] matthieu dot sarter dot external at atos dot net
Description:
------------
The test sapi/cli/tests/cli_process_title_unix.phpt fails on AIX.
The process title is properly set by PHP, but the way it is retrieved by the test is wrong on AIX,
as the ps command does not have the same behavior as on Linux : the "-o command" parameter
just gives the path to the command, the "-o args" parameter must be used to have the full
command with arguments (or title).
See AIX documentation here : http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds4/ps.htm
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72676&edit=1