fix broken subs

This commit is contained in:
krakjoe 2013-11-20 22:23:34 +00:00
parent 1c046c02b8
commit e36b718004
2 changed files with 8 additions and 2 deletions

View file

@ -342,7 +342,10 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, phpdbg_input_t *input TSRMLS_
} }
efree(sub.string); efree(sub.string);
} else { }
/* no sub command found */
{
char *store = input->string; char *store = input->string;
input->string += input->argv[0]->length; input->string += input->argv[0]->length;

View file

@ -854,7 +854,10 @@ PHPDBG_COMMAND(help) /* {{{ */
phpdbg_help_footer(); phpdbg_help_footer();
} break; } break;
phpdbg_default_switch_case(); default: {
phpdbg_error(
"No help can be found for the subject \"%s\"", param->str);
}
} }
return SUCCESS; return SUCCESS;