diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2016-10-02 12:45:20 +0100 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2016-10-02 12:45:20 +0100 |
| commit | 417a8ef6b45ed8510faf5ebfb7b4f8c76cb97934 (patch) | |
| tree | 6e92374e9258aeb296a52f64340109516b1bbb91 /sapi/phpdbg/phpdbg_parser.y | |
| parent | 9d537951c5e4af5e453dd4d60e74dad039856b80 (diff) | |
| download | php-git-417a8ef6b45ed8510faf5ebfb7b4f8c76cb97934.tar.gz | |
Fix run command args passing when inmidst execution
Diffstat (limited to 'sapi/phpdbg/phpdbg_parser.y')
| -rw-r--r-- | sapi/phpdbg/phpdbg_parser.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_parser.y b/sapi/phpdbg/phpdbg_parser.y index df9be36eee..527c321f4c 100644 --- a/sapi/phpdbg/phpdbg_parser.y +++ b/sapi/phpdbg/phpdbg_parser.y @@ -194,6 +194,11 @@ int phpdbg_do_parse(phpdbg_param_t *stack, char *input) { return 0; } + if (PHPDBG_G(cur_command)) { + free(PHPDBG_G(cur_command)); + } + PHPDBG_G(cur_command) = strdup(input); + phpdbg_init_lexer(stack, input); return yyparse(); |
