Edit report at https://bugs.php.net/bug.php?id=72676&edit=1

 ID:                 72676
 Updated by:         c...@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] c...@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

-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to