From a8a212dbd8fa55ac3da8385d33c9f871efa64d57 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 3 Feb 2005 22:46:55 +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 252213fcde..6ebbb90cea 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ PHP 4 NEWS - Fixed build system to always use bundled libtool files. (Jani) - Fixed MacOSX shared extensions crashing on Apache startup. (Rasmus) - 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 #31705 (parse_url() does not recognize http://foo.com#bar). (Ilia) - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings). (elod at itfais dot com) diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 4fa70bc263..3da4af0e9c 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.40.0