summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-07-18 23:36:37 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-07-20 18:00:42 +0200
commite3cd0709dbc7aecdc9dbc2747942f76df4ca76b5 (patch)
treeafe20955cc7f181f8284114246347aaa8defc4ea /sapi
parentdee629c92d4159556f382ffe42d74179a01b7f26 (diff)
downloadphp-git-e3cd0709dbc7aecdc9dbc2747942f76df4ca76b5.tar.gz
Do never clean stdin buffer away
Diffstat (limited to 'sapi')
-rw-r--r--sapi/phpdbg/phpdbg.c2
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;
}