summaryrefslogtreecommitdiff
path: root/ext/json/php_json.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r--ext/json/php_json.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h
index fe936d7a29..b5bb4b9cc7 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -20,7 +20,7 @@
#ifndef PHP_JSON_H
#define PHP_JSON_H
-#define PHP_JSON_VERSION "1.6.0"
+#define PHP_JSON_VERSION "1.7.0"
#include "zend_smart_str_public.h"
extern zend_module_entry json_module_entry;
@@ -74,6 +74,7 @@ typedef enum {
/* json_decode() and json_encode() common options */
#define PHP_JSON_INVALID_UTF8_IGNORE (1<<20)
#define PHP_JSON_INVALID_UTF8_SUBSTITUTE (1<<21)
+#define PHP_JSON_THROW_ON_ERROR (1<<22)
/* Internal flags */
#define PHP_JSON_OUTPUT_ARRAY 0