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

 ID:                 72676
 Comment by:         matthieu dot sarter dot external at atos dot net
 Reported by:        matthieu dot sarter dot external at atos dot net
 Summary:            Test cli_process_title_unix fails on AIX
 Status:             Assigned
 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:

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).


Previous Comments:
------------------------------------------------------------------------
[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