From 3a3ee199daac854fa197d31ba3af1b24a1373412 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 4 Jul 2025 14:56:26 +0200 Subject: add patch for PHP 8.5 from https://github.com/php/pecl-web_services-oauth/pull/35 --- 35.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 35.patch (limited to '35.patch') 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 +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, '='); -- cgit