X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=php_json_post.h;h=d94a14c587622927843bdbaad2950bb8055457de;hp=02df11751fa096fed20a958eec4292dfedc8fbe3;hb=3a8e04fd202f403556475cd6f9d1934429601512;hpb=9443267ae6573fcf03939f7226b6b7ed6d5ae59a diff --git a/php_json_post.h b/php_json_post.h index 02df117..d94a14c 100644 --- a/php_json_post.h +++ b/php_json_post.h @@ -16,7 +16,7 @@ extern zend_module_entry json_post_module_entry; #define phpext_json_post_ptr &json_post_module_entry -#define PHP_JSON_POST_VERSION "1.0.0RC1" +#define PHP_JSON_POST_VERSION "1.1.0" #ifdef PHP_WIN32 # define PHP_JSON_POST_API __declspec(dllexport) @@ -30,8 +30,20 @@ extern zend_module_entry json_post_module_entry; # include "TSRM.h" #endif +#if PHP_VERSION_ID < 70000 +typedef long zend_long; +#endif + ZEND_BEGIN_MODULE_GLOBALS(json_post) - long flags; + zend_long flags; + struct { + zend_long response; + zend_bool warning; + zend_bool exit; + } onerror; +#if PHP_VERSION_ID < 70000 + zend_module_entry *json_module; +#endif ZEND_END_MODULE_GLOBALS(json_post) ZEND_EXTERN_MODULE_GLOBALS(json_post);