diff options
author | Remi Collet <remi@remirepo.net> | 2020-09-30 11:40:02 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-09-30 11:40:02 +0200 |
commit | 930830304c4a7f05d7f4d4ec25cd83cd44b0eb9b (patch) | |
tree | 732c4ac2fdc3db152daa8d885ff6f5624075f057 /3713.patch | |
parent | b087aa85ee6ab8173614ac9d30fa30990c1cb93d (diff) |
rebuild for PHP 8.0.0RC1
add patch from https://github.com/swoole/swoole-src/pull/3713
Diffstat (limited to '3713.patch')
-rw-r--r-- | 3713.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/3713.patch b/3713.patch new file mode 100644 index 0000000..87961db --- /dev/null +++ b/3713.patch @@ -0,0 +1,30 @@ +From c7c83174a0bdf01ce202afaccb1eff45717ca427 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Wed, 30 Sep 2020 11:35:59 +0200 +Subject: [PATCH] fix for 8.0.0RC1 + +--- + php_swoole.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/php_swoole.h b/php_swoole.h +index 35be68aae7..be7d2385dd 100644 +--- a/php_swoole.h ++++ b/php_swoole.h +@@ -1129,8 +1129,16 @@ 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 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 ++ 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 ++ { ++#endif + if (formstr->s) + { + smart_str_free(formstr); |