php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75497 cli_get_process_title/cli_set_process_title fail to get/set process title
Submitted: 2017-11-07 15:25 UTC Modified: -
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: boukevanderbijl at gmail dot com Assigned:
Status: Open Package: *General Issues
PHP Version: master-Git-2017-11-07 (Git) OS: macOS 10.13.1 (17B48)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-11-07 15:25 UTC] boukevanderbijl at gmail dot com
Description:
------------
It seems the latest version (10.13) of macOS has broken the capability to get and set process titles. Using cli_get/set_process_title results in a warning. The way to fix this would be to use the OS-provided methods, which libuv from the nodejs project has implemented in https://github.com/joyent/libuv/commit/14eb8b0 and https://github.com/joyent/libuv/commit/e89aced

Test script:
---------------
<?php
cli_set_process_title('test');
echo cli_get_process_title();

Expected result:
----------------
test

Actual result:
--------------
Warning: cli_set_process_title(): cli_set_process_title had an error: Not initialized correctly in - on line 2

Call Stack:
    0.0002     366472   1. {main}() -:0
    0.0002     366472   2. cli_set_process_title() -:2


Warning: cli_get_process_title(): cli_get_process_title had an error: Not initialized correctly in - on line 3

Call Stack:
    0.0002     366472   1. {main}() -:0
    0.0004     366656   2. cli_get_process_title() -:3



Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 27 19:01:24 2020 UTC