blob: 4751c02b4e8da0a8d995e1b3f87634ee6d4a6c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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, '=');
|