|  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: -
Avg. Score:4.2 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: boukevanderbijl at gmail dot com
New email:
PHP Version: OS:


 [2017-11-07 15:25 UTC] boukevanderbijl at gmail dot com
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 and

Test script:
echo cli_get_process_title();

Expected result:

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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 01 22:03:39 2023 UTC