com php-src: Do never clean stdin buffer away: sapi/phpdbg/phpdbg.c
| From: | Bob Weinand | Date: | Mon, 20 Jul 2015 16:00:42 +0000 |
| Subject: | com php-src: Do never clean stdin buffer away: sapi/phpdbg/phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88059@lists.php.net to get a copy of this message | ||
Commit: e3cd0709dbc7aecdc9dbc2747942f76df4ca76b5
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 18 Jul 2015 23:36:37 +0200
Parents: dee629c92d4159556f382ffe42d74179a01b7f26
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e3cd0709dbc7aecdc9dbc2747942f76df4ca76b5
Log:
Do never clean stdin buffer away
Changed paths:
M sapi/phpdbg/phpdbg.c
Diff:
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index ffd0fa5..c0f5253 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;
}