diff options
author | Joe Watkins <krakjoe@php.net> | 2016-11-22 13:11:26 +0000 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2016-11-22 13:11:26 +0000 |
commit | 9efea0c23eb0bd8f92c97cc39954fd3cdb366e8b (patch) | |
tree | ce8f5c68381ee781a9e0189f7f8e0c9c0d4ce9f7 /sapi/phpdbg/phpdbg_help.c | |
parent | 1e360ff6b3d23f898cac27a2e31b3e2223d67629 (diff) | |
parent | 40da843ab5392ea6c3abb1bd48268c3c7f4b6ff4 (diff) | |
download | php-git-9efea0c23eb0bd8f92c97cc39954fd3cdb366e8b.tar.gz |
Merge branch 'PHP-7.1' into PHP-7.1.0
Diffstat (limited to 'sapi/phpdbg/phpdbg_help.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_help.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_help.c b/sapi/phpdbg/phpdbg_help.c index 0943a7ea2c..eb62d76d2e 100644 --- a/sapi/phpdbg/phpdbg_help.c +++ b/sapi/phpdbg/phpdbg_help.c @@ -209,6 +209,26 @@ static int get_command( } /* }}} */ +void phpdbg_do_help_cmd(char *type) { /* {{{ */ + char *help; + + if (!type) { + pretty_print(get_help("overview!")); + return; + } + + help = get_help(type); + + if (!help || memcmp(help, "", sizeof("")) == SUCCESS) { + pretty_print(get_help("overview!")); + pretty_print( + "\nrequested help page could not be found"); + return; + } + + pretty_print(help); +} /* }}} */ + PHPDBG_COMMAND(help) /* {{{ */ { phpdbg_command_t const *cmd; |