From cf5a568c58586da26243ee35b064a1319da9c574 Mon Sep 17 00:00:00 2001 From: Sjoerd Langkemper Date: Mon, 20 Jul 2026 09:08:59 +0000 Subject: [PATCH] Remove compat hack for curl_httppost HttpPost was renamed to curl_httppost in curl 7.9.6. Since the minimum version for PHP is 7.61.0, we can safely depend on curl_httppost. https://github.com/curl/curl/commit/579985242455741d34df17eea94174772bbe4e32 --- ext/curl/interface.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 2571eb60e42d..d5d20d825652 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -32,11 +32,6 @@ #include #include -/* As of curl 7.11.1 this is no longer defined inside curl.h */ -#ifndef HttpPost -#define HttpPost curl_httppost -#endif - #include "zend_smart_str.h" #include "ext/standard/info.h" #include "ext/standard/file.h" @@ -1110,7 +1105,7 @@ void init_curl_handle(php_curl *ch) memset(&ch->err, 0, sizeof(struct _php_curl_error)); - zend_llist_init(&ch->to_free->post, sizeof(struct HttpPost *), (llist_dtor_func_t)curl_free_post, 0); + zend_llist_init(&ch->to_free->post, sizeof(struct curl_httppost *), (llist_dtor_func_t)curl_free_post, 0); zend_llist_init(&ch->to_free->stream, sizeof(struct mime_data_cb_arg *), (llist_dtor_func_t)curl_free_cb_arg, 0); zend_hash_init(&ch->to_free->slist, 4, NULL, curl_free_slist, 0);