]> granicus.if.org Git - php/commitdiff
Fixed bug #40009 (http_build_query(array()) returns NULL).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 3 Jan 2007 23:16:56 +0000 (23:16 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 3 Jan 2007 23:16:56 +0000 (23:16 +0000)
NEWS
ext/standard/http.c

diff --git a/NEWS b/NEWS
index 287c97239bd2e18ef9cf3d2b1628c09752d8b684..3380472dbc3a37c72fdc1d00ca36cfe496cff350 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ PHP                                                                        NEWS
   the user part of the email address. (Derick)
 - Fixed bug #40012 (php_date.c doesnt compile on Netware). (gk at gknw dot de,
   Derick)
+- Fixed bug #40009 (http_build_query(array()) returns NULL). (Ilia)
 - Fixed bug #39984 (redirect response code in header() could be ignored in
   CGI sapi). (Ilia)
 - Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for
index 1c7a14d8d48311694e82d6686f4affdb71144b85..02733aadd15b763904de2730b50e65cd6a1e1f44 100644 (file)
@@ -215,7 +215,7 @@ PHP_FUNCTION(http_build_query)
        }
 
        if (!formstr.c) {
-               RETURN_NULL();
+               RETURN_EMPTY_STRING();
        }
 
        smart_str_0(&formstr);