X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=php_json_post.h;h=2895b70256978f6ce3d1fde52a8578e5a991776b;hp=4400f3141881e2974239c1b4201145e1cce3caaa;hb=129e8b459061f9f4c76e3ee8a6baaef68c0bba41;hpb=f3ab3fd7d65628dfb1815a5a1ea05d9b4d495eaf diff --git a/php_json_post.h b/php_json_post.h index 4400f31..2895b70 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.1" +#define PHP_JSON_POST_VERSION "1.1.0" #ifdef PHP_WIN32 # define PHP_JSON_POST_API __declspec(dllexport) @@ -30,8 +30,17 @@ 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; ZEND_END_MODULE_GLOBALS(json_post) ZEND_EXTERN_MODULE_GLOBALS(json_post);