diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-18 23:36:37 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-20 18:00:42 +0200 |
commit | e3cd0709dbc7aecdc9dbc2747942f76df4ca76b5 (patch) | |
tree | afe20955cc7f181f8284114246347aaa8defc4ea /sapi | |
parent | dee629c92d4159556f382ffe42d74179a01b7f26 (diff) | |
download | php-git-e3cd0709dbc7aecdc9dbc2747942f76df4ca76b5.tar.gz |
Do never clean stdin buffer away
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index ffd0fa5bd1..c0f5253c00 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -711,6 +711,8 @@ static int php_sapi_phpdbg_deactivate(void) /* {{{ */ pg->prompt[1] = PHPDBG_G(prompt)[1]; memcpy(pg->colors, PHPDBG_G(colors), sizeof(pg->colors)); pg->eol = PHPDBG_G(eol); + pg->input_buflen = PHPDBG_G(input_buflen); + memcpy(pg->input_buffer, PHPDBG_G(input_buffer), pg->input_buflen); pg->flags = PHPDBG_G(flags) & PHPDBG_PRESERVE_FLAGS_MASK; } |