mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-7.0' into PHP-7.1
This commit is contained in:
commit
b0558b3004
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user