diff options
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9605f325df..2f139f0b33 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -961,6 +961,12 @@ static int do_cli(int argc, char **argv) /* {{{ */ } request_started = 1; CG(start_lineno) = lineno; + + zend_register_bool_constant( + ZEND_STRL("PHP_CLI_PROCESS_TITLE"), + is_ps_title_available() == PS_TITLE_SUCCESS, + CONST_CS, 0); + *arg_excp = arg_free; /* reconstuct argv */ if (hide_argv) { |