]> granicus.if.org Git - php/commitdiff
Merge branch PHP-5.6 of php-src
authorBob Weinand <bobwei9@hotmail.com>
Sun, 19 Jan 2014 11:25:24 +0000 (12:25 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 19 Jan 2014 11:26:14 +0000 (12:26 +0100)
phpdbg_cmd.c

index dee3b6da19b45d96558568ac6fd3b7106bca052c..8429ce280e12a23299e3383904eff60f6d3a0333 100644 (file)
@@ -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;