com php-src: fix C89 compat: sapi/phpdbg/phpdbg_cmd.c
| From: | Anatol Belski | Date: | Sun, 19 Jan 2014 01:05:10 +0000 |
| Subject: | com php-src: fix C89 compat: sapi/phpdbg/phpdbg_cmd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75695@lists.php.net to get a copy of this message | ||
Commit: 12c1cfbf8f487c975dd3838a066a6f36d551122c
Author: Anatol Belski <ab@php.net> Sun, 19 Jan 2014 02:05:10 +0100
Parents: fb2091b1d4dd16cfbb412dbaa37b65425e605f40
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12c1cfbf8f487c975dd3838a066a6f36d551122c
Log:
fix C89 compat
Changed paths:
M sapi/phpdbg/phpdbg_cmd.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_cmd.c b/sapi/phpdbg/phpdbg_cmd.c
index 29424d0..c700851 100644
--- a/sapi/phpdbg/phpdbg_cmd.c
+++ b/sapi/phpdbg/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;