From a5a48e24bce12e3b1a21763df927550f4cbc29e9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 12 Mar 2006 18:05:20 +0000 Subject: [PATCH] - fix php-4 build --- http.c | 2 +- missing.h | 4 ++++ package2.xml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/http.c b/http.c index 730bf4b..d514b38 100644 --- 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) diff --git a/missing.h b/missing.h index da5b314..2a93ca7 100644 --- a/missing.h +++ b/missing.h @@ -17,6 +17,10 @@ #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 diff --git a/package2.xml b/package2.xml index a62cff8..407d42c 100644 --- a/package2.xml +++ b/package2.xml @@ -48,6 +48,7 @@ HttpResponse -- 2.30.2