From cc2cd82ca95bc3f59e5fdb22f15e3f907370bfb5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 17 Sep 2021 14:45:20 +0200 Subject: [PATCH] fix PHP-5-ZTS --- php_json_post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_json_post.c b/php_json_post.c index 77ceb8d..643b173 100644 --- a/php_json_post.c +++ b/php_json_post.c @@ -59,7 +59,7 @@ PHP_MINFO_FUNCTION(json_post) #if PHP_VERSION_ID < 70000 # undef JSON_G # ifdef ZTS -# define JSON_G(v) TSRMG(JSON_POST_G(json_module)->globals_id_ptr, zend_json_globals *, v) +# define JSON_G(v) TSRMG(*JSON_POST_G(json_module)->globals_id_ptr, zend_json_globals *, v) # else # define JSON_G(v) ((zend_json_globals *) JSON_POST_G(json_module)->globals_ptr)->v # endif -- 2.30.2