[PECL-CVS] [pecl-web_services-oauth] master: arg_separators.input is an zend_string in 8.5

[email protected] (Remi Collet via Michael Wallner)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Remi Collet (remicollet)
Committer: Michael Wallner (m6w6)
Date: 2025-08-20T09:27:16+02:00

Commit: https://github.com/php/pecl-web_services-oauth/commit/f4a55613e1fe8021aa1a49005bf72aa733534188
Raw diff: https://github.com/php/pecl-web_services-oauth/commit/f4a55613e1fe8021aa1a49005bf72aa733534188.diff

arg_separators.input is an zend_string in 8.5

Changed paths:
  M  oauth.c


Diff:

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, '=');
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.