rfc:cli_process_title
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:cli_process_title [2013/02/08 21:11] – [Patch] keyur | rfc:cli_process_title [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Request for Comments: PHP CLI changing process title support ====== | ====== Request for Comments: PHP CLI changing process title support ====== | ||
- | * Version: 1.1 | + | * Version: 1.3 |
* Date: 2013-02-06 | * Date: 2013-02-06 | ||
* Author: Keyur Govande < | * Author: Keyur Govande < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 28: | Line 28: | ||
* On BSD without [[http:// | * On BSD without [[http:// | ||
* On systems with support for [[http:// | * On systems with support for [[http:// | ||
- | * On Windows: the title is set as an Windows | + | * On Windows: the title is for the ' |
Support for setting the title is also built into the cli-server SAPI. | Support for setting the title is also built into the cli-server SAPI. | ||
Line 45: | Line 45: | ||
sleep(15); | sleep(15); | ||
+ | echo cli_get_process_title() . " | ||
</ | </ | ||
Line 51: | Line 52: | ||
* Linux: {{: | * Linux: {{: | ||
* FreeBSD 9.0: {{: | * FreeBSD 9.0: {{: | ||
- | * Windows 7: {{:rfc:windows_ps_title.png?200|}} | + | * Windows 7: {{:rfc:windows_ps_title_console.png?200|}} |
* OS X Lion: {{: | * OS X Lion: {{: | ||
+ | |||
+ | |||
+ | ===== Specification ===== | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | bool cli_set_process_title(string $title) | ||
+ | |||
+ | '' | ||
+ | |||
+ | ==== Parameters ==== | ||
+ | |||
+ | **title** | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | string cli_get_process_title() | ||
+ | |||
+ | '' | ||
+ | |||
+ | Note that this returned string may not match what ps/top would show; for example on FreeBSD in ps, you would see the process name as "php: title (php)" where // | ||
+ | |||
+ | If the method fails for any reason, a WARNING is emitted and NULL is returned; the most common cause of failure being the operating system is not supported. | ||
+ | |||
+ | ==== Parameters ==== | ||
+ | |||
+ | None | ||
===== Patch ===== | ===== Patch ===== | ||
- | The pull request (including tests) based on PHP-5.4 is [[https:// | + | The pull request (including tests) based on PHP-5.5 is [[https:// |
===== Voting ===== | ===== Voting ===== | ||
Line 63: | Line 91: | ||
Voting ends March 4th, 2013. | Voting ends March 4th, 2013. | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
Line 72: | Line 100: | ||
* 1.0 (2012-02-06): | * 1.0 (2012-02-06): | ||
* 1.1 (2012-02-07): | * 1.1 (2012-02-07): | ||
+ | * 1.2 (2012-02-21): | ||
+ | * 1.3 (2012-02-26): |
rfc/cli_process_title.1360357888.txt.gz · Last modified: 2017/09/22 13:28 (external edit)