From e36b71800432fd40dced211e16e7c8dad1be4360 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Wed, 20 Nov 2013 22:23:34 +0000 Subject: [PATCH] fix broken subs --- phpdbg_cmd.c | 5 ++++- phpdbg_prompt.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index b324079f27..d96ada36cd 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -342,7 +342,10 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, phpdbg_input_t *input TSRMLS_ } efree(sub.string); - } else { + } + + /* no sub command found */ + { char *store = input->string; input->string += input->argv[0]->length; diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index b06cb059e1..8ccea7d594 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -854,7 +854,10 @@ PHPDBG_COMMAND(help) /* {{{ */ phpdbg_help_footer(); } break; - phpdbg_default_switch_case(); + default: { + phpdbg_error( + "No help can be found for the subject \"%s\"", param->str); + } } return SUCCESS; -- 2.50.1