fix PHP-5-ZTS issue/3 4/head
authorMichael Wallner <mike@php.net>
Fri, 17 Sep 2021 12:45:20 +0000 (14:45 +0200)
committerMichael Wallner <mike@php.net>
Fri, 17 Sep 2021 12:45:20 +0000 (14:45 +0200)
php_json_post.c

index 77ceb8d3854fe20c208d2a3c76885223210df949..643b1738f57467322c6fb4de87b367560939f7f6 100644 (file)
@@ -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