diff options
author | Remi Collet <remi@remirepo.net> | 2023-09-04 08:47:45 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-09-04 08:47:45 +0200 |
commit | b8766f3b78bc9a0cc00a035b87d255a85eaeb132 (patch) | |
tree | e8c4c8b644e33888b2b5324bd724c0746ee75e16 /openswoole-php83.patch | |
parent | d578e90a0dca62be35dc860edfd3e206bdb21adf (diff) |
build out of sources tree
add patch for PHP 8.3 from
https://github.com/openswoole/ext-openswoole/pull/328
Diffstat (limited to 'openswoole-php83.patch')
-rw-r--r-- | openswoole-php83.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/openswoole-php83.patch b/openswoole-php83.patch new file mode 100644 index 0000000..cfc37e2 --- /dev/null +++ b/openswoole-php83.patch @@ -0,0 +1,29 @@ +From 7aef32c30f37b9278ab86a0f0b64c0e740a6d06e Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 4 Sep 2023 08:36:21 +0200 +Subject: [PATCH] fix php_url_encode_hash_ex call for 8.3 + +--- + 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 08053f6c9..7bcfaaa84 100644 +--- a/ext-src/php_swoole_private.h ++++ b/ext-src/php_swoole_private.h +@@ -1041,10 +1041,14 @@ static sw_inline char *php_swoole_http_build_query(zval *zdata, size_t *length, + #if PHP_VERSION_ID < 80000 + if (php_url_encode_hash_ex( + HASH_OF(zdata), formstr, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, (int) PHP_QUERY_RFC1738) == FAILURE) { +-#else ++#elif PHP_VERSION_ID < 80300 + 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); + } else { ++#else ++ if (HASH_OF(zdata)) { ++ php_url_encode_hash_ex(HASH_OF(zdata), formstr, NULL, NULL, NULL, NULL, NULL, (int) PHP_QUERY_RFC1738); ++ } else { + #endif + if (formstr->s) { + smart_str_free(formstr); |