Make PHP option short_open_tag configurable

This is useful for nasty legacy applications.
This commit is contained in:
Sebastian Schwarz 2014-08-07 15:57:29 +02:00
parent 950049e5bf
commit df29e3d358
3 changed files with 6 additions and 1 deletions

View File

@ -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).

View File

@ -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

View File

@ -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