diff --git a/tasks/php-fpm.yml b/tasks/php-fpm.yml index 0cedf4d..820e2a9 100644 --- a/tasks/php-fpm.yml +++ b/tasks/php-fpm.yml @@ -26,6 +26,7 @@ - php-pdo-mysql - php-apcu - php-bcmath + - php-pear notify: - restart nginx - restart php-fpm diff --git a/templates/php-fpm/php.ini.j2 b/templates/php-fpm/php.ini.j2 index 8d71754..7a2c89c 100644 --- a/templates/php-fpm/php.ini.j2 +++ b/templates/php-fpm/php.ini.j2 @@ -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 @@ -922,7 +925,7 @@ cli_server.color = On [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone -;date.timezone = +date.timezone = "UTC" ; http://php.net/date.default-latitude ;date.default_latitude = 31.7667