Bug #75497 [NEW]: cli_get_process_title/cli_set_process_title fail to get/set process title

From: Date: Tue, 07 Nov 2017 15:25:19 +0000
Subject: Bug #75497 [NEW]: cli_get_process_title/cli_set_process_title fail to get/set process title
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212501@lists.php.net to get a copy of this message
From: boukevanderbijl at gmail dot com Operating system: macOS 10.13.1 (17B48) PHP version: master-Git-2017-11-07 (Git) Package: *General Issues Bug Type: Bug Bug description:cli_get_process_title/cli_set_process_title fail to get/set process title 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 -- Edit bug report at https://bugs.php.net/bug.php?id=75497&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75497&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75497&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75497&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75497&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75497&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75497&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75497&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75497&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75497&r=support Expected behavior: https://bugs.php.net/fix.php?id=75497&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75497&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75497&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75497&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75497&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75497&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75497&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75497&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75497&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75497&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75497&r=mysqlcfg

« previous php.bugs (#212501) next »