From e9668d4ce8512838d92b05aa47da02c85a37c486 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Mon, 21 Apr 2014 21:43:19 +0100 Subject: buffer input to repeat commands --- phpdbg_prompt.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'phpdbg_prompt.c') diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index d93b55374e..2e07c32174 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -1028,13 +1028,13 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */ if (yyparse(&stack, scanner) <= 0) { switch (ret = phpdbg_stack_execute(&stack, &why TSRMLS_CC)) { case FAILURE: -// if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) { + if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) { if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) { if (why) { phpdbg_error("%s", why); } } -// } + } if (why) { free(why); @@ -1066,17 +1066,6 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */ phpdbg_destroy_input(&input TSRMLS_CC); } while ((input = phpdbg_read_input(NULL TSRMLS_CC))); - - if (!input) - goto last; - - } else { -last: - if (PHPDBG_G(lcmd)) { - ret = PHPDBG_G(lcmd)->handler( - &PHPDBG_G(lparam) TSRMLS_CC); - goto out; - } } out: -- cgit v1.2.1