From 3b6255f1aad0e1f1caf7d497848062af4ecd7ae8 Mon Sep 17 00:00:00 2001 From: Robbert van den Bogerd Date: Wed, 1 Apr 2020 17:06:51 +0200 Subject: [PATCH] Make serialize_precision a parameter According to the php documentation, the default version for php should be "-1". Before php7.1 it was 17, so I parameterized it, and made the default "-1" --- defaults/main.yml | 1 + templates/php.ini.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 469849b..767b6e3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -76,6 +76,7 @@ php_output_buffering: "4096" php_short_open_tag: "Off" php_disable_functions: [] php_precision: 14 +php_serialize_precision: "-1" php_session_cookie_lifetime: 0 php_session_gc_probability: 1 diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index f4393d5..14b7eeb 100644 --- a/templates/php.ini.j2 +++ b/templates/php.ini.j2 @@ -13,7 +13,7 @@ zlib.output_compression = Off implicit_flush = Off unserialize_callback_func = -serialize_precision = 17 +serialize_precision = {{ php_serialize_precision }} disable_functions = {{ php_disable_functions|join(",") }} disable_classes =