diff options
-rw-r--r-- | dev/phpdbg_parser.y | 5 | ||||
-rw-r--r-- | phpdbg_parser.c | 4 | ||||
-rw-r--r-- | phpdbg_prompt.c | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/dev/phpdbg_parser.y b/dev/phpdbg_parser.y index 9d7149ff83..24bcc68537 100644 --- a/dev/phpdbg_parser.y +++ b/dev/phpdbg_parser.y @@ -191,11 +191,11 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) { switch (command->type) { case EVAL_PARAM: - phpdbg_notice("eval (%s)", command->str); + PHPDBG_COMMAND_HANDLER(eval)(command, NULL TSRMLS_CC); break; case SHELL_PARAM: - phpdbg_notice("shell (%s)", command->str); + PHPDBG_COMMAND_HANDLER(shell)(command, NULL TSRMLS_CC); break; case STR_PARAM: { @@ -228,7 +228,6 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) { return SUCCESS; } - %} %code requires { diff --git a/phpdbg_parser.c b/phpdbg_parser.c index ef9d4f4333..79745cef8b 100644 --- a/phpdbg_parser.c +++ b/phpdbg_parser.c @@ -259,11 +259,11 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) { switch (command->type) { case EVAL_PARAM: - phpdbg_notice("eval (%s)", command->str); + PHPDBG_COMMAND_HANDLER(eval)(command, NULL TSRMLS_CC); break; case SHELL_PARAM: - phpdbg_notice("shell (%s)", command->str); + PHPDBG_COMMAND_HANDLER(shell)(command, NULL TSRMLS_CC); break; case STR_PARAM: { diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index e53a5e68b1..632ceb9761 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -617,7 +617,7 @@ out: PHPDBG_COMMAND(eval) /* {{{ */ { switch (param->type) { - case STR_PARAM: { + case EVAL_PARAM: { zend_bool stepping = ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)==PHPDBG_IS_STEPPING); zval retval; @@ -780,7 +780,7 @@ PHPDBG_COMMAND(shell) /* {{{ */ { /* don't allow this to loop, ever ... */ switch (param->type) { - case STR_PARAM: { + case SHELL_PARAM: { FILE *fd = NULL; if ((fd=VCWD_POPEN((char*)param->str, "w"))) { /* do something perhaps ?? do we want input ?? */ |