From: Ilia Alshanetsky Date: Thu, 3 Feb 2005 22:46:55 +0000 (+0000) Subject: MFH: Fixed bug #31796 (readline completion handler does not handle empty X-Git-Tag: php-4.3.11RC1~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8a212dbd8fa55ac3da8385d33c9f871efa64d57;p=php MFH: Fixed bug #31796 (readline completion handler does not handle empty return values). --- 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)