]> granicus.if.org Git - php/commitdiff
Change default for serialize_precision to -1 (use mode 0)
authorJakub Zelenka <bukka@php.net>
Sun, 26 Jun 2016 12:41:22 +0000 (13:41 +0100)
committerJakub Zelenka <bukka@php.net>
Sun, 26 Jun 2016 12:41:22 +0000 (13:41 +0100)
php.ini-development
php.ini-production

index 604efc46a03329247407665fc7ee6166d71007e3..39cc140c19bd9776165d5a2afe6d880a581e14be 100644 (file)
@@ -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
index f2723f63a470fa0f309192bc08f1b4c7c4642cc6..05be1ebe7d40adc449fb7af49e7be80ed69a7196 100644 (file)
@@ -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