From 3bee7394566cb50e75d92feaf0734ec8fc193535 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 3 Feb 2005 22:46:24 +0000 Subject: [PATCH] MFH: Fixed bug #31796 (readline completion handler does not handle empty return values). --- NEWS | 2 ++ ext/readline/readline.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index c790a53288..587e18b882 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,8 @@ PHP NEWS - Fixed posix_getsid() & posix_getpgid() to return sid & pgid instead of true. (Tony) - Fixed bug #31797 (exif_read_data() uses too low nesting limit). (Ilia) +- Fixed bug #31796 (readline completion handler does not handle empty return + values). (Ilia) - Fixed bug #31755 (Cannot create SOAP header in no namespace). (Dmitry) - Fixed bug #31747 (SOAP Digest Authentication doesn't work with "HTTP/1.1 100 Continue" response). (Dmitry) diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 44a0808165..31a65bb0d0 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -354,7 +354,7 @@ static char *_readline_command_generator(char *text,int state) } } - return NULL; + return strdup(""); } static zval *_readline_string_zval(const char *str) -- 2.50.1