We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb2091b commit 12c1cfbCopy full SHA for 12c1cfb
sapi/phpdbg/phpdbg_cmd.c
@@ -459,6 +459,9 @@ PHPDBG_API phpdbg_input_t *phpdbg_read_input(char *buffered TSRMLS_DC) /* {{{ */
459
{
460
phpdbg_input_t *buffer = NULL;
461
char *cmd = NULL;
462
+#ifndef HAVE_LIBREADLINE
463
+ char buf[PHPDBG_MAX_CMD];
464
+#endif
465
466
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
467
if ((PHPDBG_G(flags) & PHPDBG_IS_REMOTE) &&
@@ -475,7 +478,6 @@ PHPDBG_API phpdbg_input_t *phpdbg_read_input(char *buffered TSRMLS_DC) /* {{{ */
475
478
}
476
479
477
480
#ifndef HAVE_LIBREADLINE
- char buf[PHPDBG_MAX_CMD];
481
if (!(PHPDBG_G(flags) & PHPDBG_IS_REMOTE)) {
482
if (!phpdbg_write(phpdbg_get_prompt(TSRMLS_C))) {
483
goto disconnect;
0 commit comments