From: Ilia Alshanetsky Date: Wed, 3 Jan 2007 23:17:17 +0000 (+0000) Subject: MFB: Fixed bug #40009 (http_build_query(array()) returns NULL). X-Git-Tag: RELEASE_1_0_0RC1~408 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b2e195bd83b6ac2b62f49ba6409481be2a4d503;p=php MFB: Fixed bug #40009 (http_build_query(array()) returns NULL). --- diff --git a/ext/standard/http.c b/ext/standard/http.c index 4ff60668fc..e6888417da 100644 --- a/ext/standard/http.c +++ b/ext/standard/http.c @@ -247,7 +247,7 @@ PHP_FUNCTION(http_build_query) } if (!formstr.c) { - RETURN_NULL(); + RETURN_EMPTY_STRING(); } smart_str_0(&formstr);