From: Ilia Alshanetsky Date: Thu, 3 Feb 2005 22:45:36 +0000 (+0000) Subject: Fixed bug #31796 (readline completion handler does not handle empty return X-Git-Tag: RELEASE_0_2~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5879c5cf2197e57d71676dc5d9c2689b85f14d17;p=php Fixed bug #31796 (readline completion handler does not handle empty return values). --- diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 0af0c42b29..a11646b29a 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -377,7 +377,7 @@ static char *_readline_command_generator(char *text,int state) } } - return NULL; + return strdup(""); } static zval *_readline_string_zval(const char *str)