mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix C89 compat
This commit is contained in:
parent
fb2091b1d4
commit
12c1cfbf8f
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue