- fix php-4 build
authorMichael Wallner <mike@php.net>
Sun, 12 Mar 2006 18:05:20 +0000 (18:05 +0000)
committerMichael Wallner <mike@php.net>
Sun, 12 Mar 2006 18:05:20 +0000 (18:05 +0000)
http.c
missing.h
package2.xml

diff --git a/http.c b/http.c
index 730bf4b416932582ff7c001fded93be2a2e3a863..d514b3841efa4adb28eaa978a37a4996de27d51b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -71,7 +71,7 @@ zend_function_entry http_functions[] = {
        PHP_FE(http_build_url, http_arg_pass_ref_4)
        PHP_FE(http_build_str, NULL)
 #ifndef ZEND_ENGINE_2
-       PHP_FALIAS(http_build_query, http_build_str)
+       PHP_FALIAS(http_build_query, http_build_str, NULL)
 #endif
        PHP_FE(http_negotiate_language, http_arg_pass_ref_2)
        PHP_FE(http_negotiate_charset, http_arg_pass_ref_2)
index da5b3144f1fa0fc6c9811055f6548962ca236c63..2a93ca74bdac980124e64fe43729071c1df75ef8 100644 (file)
--- a/missing.h
+++ b/missing.h
 
 #include "php_version.h"
 
+#ifndef pemalloc_rel
+#      define pemalloc_rel(size, persistent) ((persistent)?malloc(size):emalloc_rel(size))
+#endif
+
 #if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION == 0)
 #      define WONKY
 #endif
index a62cff82989a46b42ec3f216d48d370360f50a1e..407d42ca3501a5976c062f217823aa5eaf9138e7 100644 (file)
@@ -48,6 +48,7 @@ HttpResponse
  <notes><![CDATA[
 * Fixed possible crash in HttpQueryString if the SAPI does not have a treat_data function registered.
 * Fixed http_build_str() to urlencode brackets ("[]").
+* Fixed PHP-4 build.
 ]]></notes>
  <contents>
   <dir name="/">