summaryrefslogtreecommitdiff
path: root/ext/json/php_json.h
diff options
context:
space:
mode:
authorJuan Basso <jrbasso@gmail.com>2014-03-29 19:41:48 -0400
committerStanislav Malyshev <stas@php.net>2015-01-19 00:46:02 -0800
commitac7cfad3b54b04b7ff2d0e4bfd26e8b61d233613 (patch)
tree1c24d1096945799cf9b856a0749b29b89a3ef595 /ext/json/php_json.h
parent6de149e47c1e9050fef39640e2da8a230fda76cf (diff)
downloadphp-git-ac7cfad3b54b04b7ff2d0e4bfd26e8b61d233613.tar.gz
Fixed bug #50224 where float without decimals were converted to integer
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r--ext/json/php_json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h
index 7347ef7e06..efd872b5f4 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -65,6 +65,7 @@ extern PHP_JSON_API zend_class_entry *php_json_serializable_ce;
#define PHP_JSON_PRETTY_PRINT (1<<7)
#define PHP_JSON_UNESCAPED_UNICODE (1<<8)
#define PHP_JSON_PARTIAL_OUTPUT_ON_ERROR (1<<9)
+#define PHP_JSON_PRESERVE_ZERO_FRACTION (1<<10)
/* Internal flags */
#define PHP_JSON_OUTPUT_ARRAY 0