Permalink
Browse files

Fixed bug #40009 (http_build_query(array()) returns NULL).

  • Loading branch information...
1 parent b2fa0cb commit a078b563267400fc5a5eb39464707562aa8b52cf Ilia Alshanetsky committed Jan 3, 2007
Showing with 2 additions and 1 deletion.
  1. +1 −0 NEWS
  2. +1 −1 ext/standard/http.c
View
1 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
View
@@ -215,7 +215,7 @@ PHP_FUNCTION(http_build_query)
}
if (!formstr.c) {
- RETURN_NULL();
+ RETURN_EMPTY_STRING();
}
smart_str_0(&formstr);

0 comments on commit a078b56

Please sign in to comment.