]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #31796 (readline completion handler does not handle empty
authorIlia Alshanetsky <iliaa@php.net>
Thu, 3 Feb 2005 22:46:24 +0000 (22:46 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 3 Feb 2005 22:46:24 +0000 (22:46 +0000)
return values).

NEWS
ext/readline/readline.c

diff --git a/NEWS b/NEWS
index c790a532882bc6f3cf77473573cf6e1b9f5c947a..587e18b882f906a752ba415a3c276e5ec976f811 100644 (file)
--- 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)
index 44a0808165da6d0936cc53fc56acd998fd6ba9a0..31a65bb0d0a76e30aed1e9ac315c0086a4dbb33e 100644 (file)
@@ -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)