summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorKeyur Govande <kgovande@gmail.com>2013-03-07 18:54:34 +0000
committerKeyur Govande <kgovande@gmail.com>2013-03-07 18:54:34 +0000
commita0a995cff356a6e7526188ad1979fac6c24b9e7e (patch)
tree9d2660c6174f6dcab5f11a1418dc3dbbd585ffed /sapi/cli/php_cli_server.c
parentd77eb411ea5d80379ee92a908f543b91fa293383 (diff)
downloadphp-git-a0a995cff356a6e7526188ad1979fac6c24b9e7e.tar.gz
Support for CLI process title (https://wiki.php.net/rfc/cli_process_title)
A new commit into branch 5.5
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r--sapi/cli/php_cli_server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 1d2ceff691..a2b85d47b0 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -103,6 +103,8 @@
#include "php_http_parser.h"
#include "php_cli_server.h"
+#include "php_cli_process_title.h"
+
#define OUTPUT_NOT_CHECKED -1
#define OUTPUT_IS_TTY 1
#define OUTPUT_NOT_TTY 0
@@ -429,6 +431,12 @@ zend_module_entry cli_server_module_entry = {
};
/* }}} */
+const zend_function_entry server_additional_functions[] = {
+ PHP_FE(cli_set_process_title, arginfo_cli_set_process_title)
+ PHP_FE(cli_get_process_title, arginfo_cli_get_process_title)
+ {NULL, NULL, NULL}
+};
+
static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */
{
if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) {