summaryrefslogtreecommitdiffstats
path: root/swoole-php83.patch
diff options
context:
space:
mode:
Diffstat (limited to 'swoole-php83.patch')
-rw-r--r--swoole-php83.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/swoole-php83.patch b/swoole-php83.patch
new file mode 100644
index 0000000..7075078
--- /dev/null
+++ b/swoole-php83.patch
@@ -0,0 +1,27 @@
+From db71b11de6facd0d35bacc156a2a8092bb216182 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=E8=99=9E=E7=81=AA?= <995645888@qq.com>
+Date: Sun, 23 Jul 2023 11:47:40 +0800
+Subject: [PATCH] The PHPAPI php_url_encode_hash_ex() function has had its
+ signature change (#5099)
+
+---
+ ext-src/php_swoole_private.h | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/ext-src/php_swoole_private.h b/ext-src/php_swoole_private.h
+index 8c9f26df65..571808bb8b 100644
+--- a/ext-src/php_swoole_private.h
++++ b/ext-src/php_swoole_private.h
+@@ -957,7 +957,11 @@ static sw_inline char *php_swoole_url_encode(const char *value, size_t value_len
+
+ static sw_inline char *php_swoole_http_build_query(zval *zdata, size_t *length, smart_str *formstr) {
+ if (HASH_OF(zdata)) {
+- php_url_encode_hash_ex(HASH_OF(zdata), formstr, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, (int) PHP_QUERY_RFC1738);
++ #if PHP_VERSION_ID < 80300
++ php_url_encode_hash_ex(HASH_OF(zdata), formstr, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, (int) PHP_QUERY_RFC1738);
++ #else
++ php_url_encode_hash_ex(HASH_OF(zdata), formstr, NULL, 0, NULL, NULL, NULL, (int) PHP_QUERY_RFC1738);
++ #endif
+ } else {
+ if (formstr->s) {
+ smart_str_free(formstr);