From df29e3d358f145237317ec8415de1e560170672f Mon Sep 17 00:00:00 2001 From: Sebastian Schwarz Date: Thu, 7 Aug 2014 15:57:29 +0200 Subject: [PATCH] Make PHP option short_open_tag configurable This is useful for nasty legacy applications. --- README.md | 4 ++++ defaults/main.yml | 1 + templates/php.ini.j2 | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fa7d76..f70b02d 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,10 @@ Explicitly set PHP's date timezone system-wide. The path to use for sendmail or a sendmail wrapper/replacement. You can also add options to this line if you need to set sendmail to use an explicit name/email for the sender. + php_short_open_tag: false + +Whether to allow short open tags. + php_packages: [] A list of the PHP packages to install (OS-specific by default). You'll likely want to install common packages like `php`, `php-cli`, `php-devel` and `php-pdo`, and you can add in whatever other packages you'd like (for example, `php-gd` for image manipulation, or `php-ldap` if you need to connect to an LDAP server for authentication). diff --git a/defaults/main.yml b/defaults/main.yml index 9229248..d457898 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -14,3 +14,4 @@ php_webserver_daemon: "httpd" php_enable_php_fpm: false php_sendmail_path: "/usr/sbin/sendmail -t -i" +php_short_open_tag: false diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index cf01c6f..e27f68b 100644 --- a/templates/php.ini.j2 +++ b/templates/php.ini.j2 @@ -208,7 +208,7 @@ engine = On ; Development Value: Off ; Production Value: Off ; http://php.net/short-open-tag -short_open_tag = Off +short_open_tag = {{ php_short_open_tag }} ; Allow ASP-style <% %> tags. ; http://php.net/asp-tags