summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2016-06-26 13:41:22 +0100
committerJakub Zelenka <bukka@php.net>2016-06-26 13:41:22 +0100
commit158b537c99ca5fc7846e7d16d532644be95894a7 (patch)
tree55705d4c99f477738dae3e5eb55bd46c7acde0a7
parent71774c241e289e6c7a4159fe53cc832742deaa3d (diff)
downloadphp-git-158b537c99ca5fc7846e7d16d532644be95894a7.tar.gz
Change default for serialize_precision to -1 (use mode 0)
-rw-r--r--php.ini-development5
-rw-r--r--php.ini-production5
2 files changed, 8 insertions, 2 deletions
diff --git a/php.ini-development b/php.ini-development
index 604efc46a0..39cc140c19 100644
--- a/php.ini-development
+++ b/php.ini-development
@@ -285,7 +285,10 @@ unserialize_callback_func =
; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
-serialize_precision = 17
+; The value is also used for json_encode when encoding double values.
+; If -1 is used, then dtoa mode 0 is used which automatically select the best
+; precision.
+serialize_precision = -1
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
diff --git a/php.ini-production b/php.ini-production
index f2723f63a4..05be1ebe7d 100644
--- a/php.ini-production
+++ b/php.ini-production
@@ -285,7 +285,10 @@ unserialize_callback_func =
; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
-serialize_precision = 17
+; The value is also used for json_encode when encoding double values.
+; If -1 is used, then dtoa mode 0 is used which automatically select the best
+; precision.
+serialize_precision = -1
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory