summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-01-19 12:25:24 +0100
committerBob Weinand <bobwei9@hotmail.com>2014-01-19 12:26:14 +0100
commit2e4aed3673607fda63edaac2b9b69669c5c1ceec (patch)
treeaa2ee66860c0e119569ad66df56e204053fb26e2
parentf27be2fded6b75cac1b13bd237c3ae0d8238a40d (diff)
downloadphp-git-2e4aed3673607fda63edaac2b9b69669c5c1ceec.tar.gz
Merge branch PHP-5.6 of php-src
-rw-r--r--phpdbg_cmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c
index dee3b6da19..8429ce280e 100644
--- a/phpdbg_cmd.c
+++ b/phpdbg_cmd.c
@@ -459,6 +459,9 @@ PHPDBG_API phpdbg_input_t *phpdbg_read_input(char *buffered TSRMLS_DC) /* {{{ */
{
phpdbg_input_t *buffer = NULL;
char *cmd = NULL;
+#ifndef HAVE_LIBREADLINE
+ char buf[PHPDBG_MAX_CMD];
+#endif
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
if ((PHPDBG_G(flags) & PHPDBG_IS_REMOTE) &&
@@ -475,7 +478,6 @@ disconnect:
}
#ifndef HAVE_LIBREADLINE
- char buf[PHPDBG_MAX_CMD];
if (!(PHPDBG_G(flags) & PHPDBG_IS_REMOTE)) {
if (!phpdbg_write(phpdbg_get_prompt(TSRMLS_C))) {
goto disconnect;