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:4
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: boukevanderbijl at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 18:01:31 2024 UTC