From: Michael Wallner Date: Fri, 17 Sep 2021 12:45:20 +0000 (+0200) Subject: fix PHP-5-ZTS X-Git-Tag: v1.1.0~1 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=commitdiff_plain;h=cc2cd82ca95bc3f59e5fdb22f15e3f907370bfb5 fix PHP-5-ZTS --- 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