com php-src: fix broken subs: phpdbg_cmd.c phpdbg_promp t.c

From: Date: Wed, 20 Nov 2013 22:23:34 +0000
Subject: com php-src: fix broken subs: phpdbg_cmd.c phpdbg_promp t.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74739@lists.php.net to get a copy of this message
Commit: e36b71800432fd40dced211e16e7c8dad1be4360 Author: krakjoe <joe.watkins@live.co.uk> Wed, 20 Nov 2013 22:23:34 +0000 Parents: 1c046c02b8001f114fc14997f3b14492da74b219 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e36b71800432fd40dced211e16e7c8dad1be4360 Log: fix broken subs Changed paths: M phpdbg_cmd.c M phpdbg_prompt.c Diff: diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index b324079..d96ada3 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 b06cb05..8ccea7d 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;

« previous php.cvs (#74739) next »