diff options
author | Jakub Zelenka <bukka@php.net> | 2016-06-23 20:13:49 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-06-26 13:26:43 +0100 |
commit | 75b86a2c22a5484c34acbbaa47520a05b3a6f5f0 (patch) | |
tree | 0945857eeb6f5101edea2e2888c1f288e6e9033d /ext/json/json_encoder.c | |
parent | 3043be37160961faf6985c242684892ee745b713 (diff) | |
download | php-git-75b86a2c22a5484c34acbbaa47520a05b3a6f5f0.tar.gz |
Replace json.precision with serialize_precision
Diffstat (limited to 'ext/json/json_encoder.c')
-rw-r--r-- | ext/json/json_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json_encoder.c b/ext/json/json_encoder.c index 48d082a031..7720393c36 100644 --- a/ext/json/json_encoder.c +++ b/ext/json/json_encoder.c @@ -105,7 +105,7 @@ static inline void php_json_encode_double(smart_str *buf, double d, int options) size_t len; char num[PHP_JSON_DOUBLE_MAX_LENGTH]; - php_gcvt(d, (int)JSON_G(precision), '.', 'e', num); + php_gcvt(d, (int)PG(serialize_precision), '.', 'e', num); len = strlen(num); if (options & PHP_JSON_PRESERVE_ZERO_FRACTION && strchr(num, '.') == NULL && len < PHP_JSON_DOUBLE_MAX_LENGTH - 2) { num[len++] = '.'; |