]> granicus.if.org Git - php/commitdiff
fix broken subs
authorkrakjoe <joe.watkins@live.co.uk>
Wed, 20 Nov 2013 22:23:34 +0000 (22:23 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Wed, 20 Nov 2013 22:23:34 +0000 (22:23 +0000)
phpdbg_cmd.c
phpdbg_prompt.c

index b324079f2713e50f5513f96de6ddfa52031fb92f..d96ada36cd3e233dc3b4ea7dc0f2907c4061413c 100644 (file)
@@ -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;
index b06cb059e1ed363355cce2683f44e6f5bb462f84..8ccea7d594804753c796fe7d7f10941d11b228d9 100644 (file)
@@ -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;