summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-07-28 17:00:54 +0200
committerChristoph M. Becker <cmb@php.net>2016-07-28 17:00:54 +0200
commitb0558b3004c94c9646a9d1b736466028b59d682f (patch)
treeaf50b600f2ecf014a7712ba2afc84b80ee47dde6
parentaf285634c671363fb48e2dcc70b6d20796c1a71d (diff)
parent95190db84d0e3afe43793f08ed5289b3510c0eee (diff)
downloadphp-git-b0558b3004c94c9646a9d1b736466028b59d682f.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
-rw-r--r--sapi/cli/tests/cli_process_title_unix.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/cli/tests/cli_process_title_unix.phpt b/sapi/cli/tests/cli_process_title_unix.phpt
index c2632704c5..659299c1fc 100644
--- a/sapi/cli/tests/cli_process_title_unix.phpt
+++ b/sapi/cli/tests/cli_process_title_unix.phpt
@@ -15,7 +15,12 @@ $pid = getmypid();
if (cli_set_process_title($original_title) === true)
echo "Successfully set title\n";
-$ps_output = shell_exec("ps -p $pid -o command | tail -n 1");
+$ps_process_title_field = "command";
+if (strtoupper(substr(PHP_OS, 0, 3)) == "AIX")
+{
+ $ps_process_title_field = "args";
+}
+$ps_output = shell_exec("ps -p $pid -o $ps_process_title_field | tail -n 1");
if ($ps_output === null)
{