diff --git a/README.md b/README.md index c463259..e19e6f2 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ By default, all the extra defaults below are applied through the php.ini include php_session_save_handler: files php_session_save_path: '' php_disable_functions: [] + php_precision: 14 Various defaults for PHP. Only used if `php_use_managed_ini` is set to `true`. diff --git a/defaults/main.yml b/defaults/main.yml index d73a6dc..341e8a2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -67,6 +67,7 @@ php_sendmail_path: "/usr/sbin/sendmail -t -i" php_output_buffering: "4096" php_short_open_tag: "Off" php_disable_functions: [] +php_precision: 14 php_session_cookie_lifetime: 0 php_session_gc_probability: 1 diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index b157df1..cbe5ec2 100644 --- a/templates/php.ini.j2 +++ b/templates/php.ini.j2 @@ -7,7 +7,7 @@ engine = On short_open_tag = {{ php_short_open_tag }} asp_tags = Off -precision = 14 +precision = {{ php_precision }} output_buffering = {{ php_output_buffering }} zlib.output_compression = Off