From: Anatol Belski Date: Sun, 19 Jan 2014 01:05:10 +0000 (+0100) Subject: fix C89 compat X-Git-Tag: php-5.6.3RC1~20^2~2^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=137feda86a96caa368453acba9befb6c15c69d12;p=php fix C89 compat --- diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 29424d00fe..c700851243 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;