File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,10 @@ unserialize_callback_func =
285
285
; When floats & doubles are serialized store serialize_precision significant
286
286
; digits after the floating point. The default value ensures that when floats
287
287
; are decoded with unserialize, the data will remain the same.
288
- serialize_precision = 17
288
+ ; The value is also used for json_encode when encoding double values.
289
+ ; If -1 is used, then dtoa mode 0 is used which automatically select the best
290
+ ; precision.
291
+ serialize_precision = -1
289
292
290
293
; open_basedir, if set, limits all file operations to the defined directory
291
294
; and below. This directive makes most sense if used in a per-directory
Original file line number Diff line number Diff line change @@ -285,7 +285,10 @@ unserialize_callback_func =
285
285
; When floats & doubles are serialized store serialize_precision significant
286
286
; digits after the floating point. The default value ensures that when floats
287
287
; are decoded with unserialize, the data will remain the same.
288
- serialize_precision = 17
288
+ ; The value is also used for json_encode when encoding double values.
289
+ ; If -1 is used, then dtoa mode 0 is used which automatically select the best
290
+ ; precision.
291
+ serialize_precision = -1
289
292
290
293
; open_basedir, if set, limits all file operations to the defined directory
291
294
; and below. This directive makes most sense if used in a per-directory
You can’t perform that action at this time.
0 commit comments