projects
/
m6w6
/
ext-json_post
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
PHP compat 5-8
[m6w6/ext-json_post]
/
php_json_post.h
diff --git
a/php_json_post.h
b/php_json_post.h
index 1c0f015ba95273f62ab57a726ed4a9a3e1c4bddf..9623a449a83498bed2b14d5082ab903a683b8fc4 100644
(file)
--- 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
extern zend_module_entry json_post_module_entry;
#define phpext_json_post_ptr &json_post_module_entry
-#define PHP_JSON_POST_VERSION "1.
0.2dev
"
+#define PHP_JSON_POST_VERSION "1.
1.0
"
#ifdef PHP_WIN32
# define PHP_JSON_POST_API __declspec(dllexport)
#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
# include "TSRM.h"
#endif
+#if PHP_VERSION_ID < 70000
+typedef long zend_long;
+#endif
+
ZEND_BEGIN_MODULE_GLOBALS(json_post)
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_function *json_last_error;
+#endif
ZEND_END_MODULE_GLOBALS(json_post)
ZEND_EXTERN_MODULE_GLOBALS(json_post);
ZEND_END_MODULE_GLOBALS(json_post)
ZEND_EXTERN_MODULE_GLOBALS(json_post);