diff options
author | krakjoe <joe.watkins@live.co.uk> | 2014-04-21 21:43:19 +0100 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2014-04-21 21:43:19 +0100 |
commit | e9668d4ce8512838d92b05aa47da02c85a37c486 (patch) | |
tree | 8606a87e638c3cf81dec31fb148e124ed30c8dd3 /phpdbg_prompt.c | |
parent | bb0f0347dd99d42be923d5f61bc13e86df7cb8d4 (diff) | |
download | php-git-e9668d4ce8512838d92b05aa47da02c85a37c486.tar.gz |
buffer input to repeat commands
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r-- | phpdbg_prompt.c | 15 |
1 files changed, 2 insertions, 13 deletions
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: |