Bug #72676 [Asn->Csd]: Test cli_process_title_unix fails on AIX
| From: | cmb@php.net | Date: | Thu, 28 Jul 2016 15:16:37 +0000 |
| Subject: | Bug #72676 [Asn->Csd]: Test cli_process_title_unix fails on AIX | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-202675@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: Assigned
+Status: Closed
Type: Bug
Package: Testing related
Operating System: AIX
PHP Version: 7.0.9
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6e886f07a8f8cdad8ffb056d6133b49a79a0d216
Log: Fix #72676: Test cli_process_title_unix fails on AIX
Previous Comments:
------------------------------------------------------------------------
[2016-07-26 15:36:13] matthieu dot sarter dot external at atos dot net
Yep, it should be 3, sorry.
PHP_OS is currently set to "AIX" on my system (value comes from uname), so the substr is
not absolutely necessary, but it's more future proof if something were added after the name
(like a release number).
------------------------------------------------------------------------
[2016-07-26 14:29:09] cmb@php.net
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?
------------------------------------------------------------------------
[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