diff options
author | Remi Collet <remi@remirepo.net> | 2025-07-04 14:56:26 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-07-04 14:56:26 +0200 |
commit | 3a3ee199daac854fa197d31ba3af1b24a1373412 (patch) | |
tree | 5b5224475b5e633b5689efe570c95a62edb1a307 /35.patch | |
parent | d256a74edfec7568501fd18e0060f7545124441a (diff) |
https://github.com/php/pecl-web_services-oauth/pull/35
Diffstat (limited to '35.patch')
-rw-r--r-- | 35.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/35.patch b/35.patch new file mode 100644 index 0000000..4751c02 --- /dev/null +++ b/35.patch @@ -0,0 +1,25 @@ +From 633d0a55cd23d17c6a2e964d7671348b682af761 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 4 Jul 2025 14:45:20 +0200 +Subject: [PATCH] arg_separators.input is an zend_string in 8.5 + +--- + oauth.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/oauth.c b/oauth.c +index 1493eb7..a7fd6cc 100644 +--- a/oauth.c ++++ b/oauth.c +@@ -60,7 +60,11 @@ static int oauth_parse_str(char *params, zval *dest_array) /* {{{ */ + } + + res = params; ++#if PHP_VERSION_ID < 80500 + separator = (char *) estrdup(PG(arg_separator).input); ++#else ++ separator = (char *) estrdup(ZSTR_VAL(PG(arg_separator).input)); ++#endif + var = php_strtok_r(res, separator, &strtok_buf); + while (var) { + val = strchr(var, '='); |