Skip to content

Commit 12c1cfb

Browse files
committed
fix C89 compat
1 parent fb2091b commit 12c1cfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sapi/phpdbg/phpdbg_cmd.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ PHPDBG_API phpdbg_input_t *phpdbg_read_input(char *buffered TSRMLS_DC) /* {{{ */
459459
{
460460
phpdbg_input_t *buffer = NULL;
461461
char *cmd = NULL;
462+
#ifndef HAVE_LIBREADLINE
463+
char buf[PHPDBG_MAX_CMD];
464+
#endif
462465

463466
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
464467
if ((PHPDBG_G(flags) & PHPDBG_IS_REMOTE) &&
@@ -475,7 +478,6 @@ PHPDBG_API phpdbg_input_t *phpdbg_read_input(char *buffered TSRMLS_DC) /* {{{ */
475478
}
476479

477480
#ifndef HAVE_LIBREADLINE
478-
char buf[PHPDBG_MAX_CMD];
479481
if (!(PHPDBG_G(flags) & PHPDBG_IS_REMOTE)) {
480482
if (!phpdbg_write(phpdbg_get_prompt(TSRMLS_C))) {
481483
goto disconnect;

0 commit comments

Comments
 (0)