Verified Commit de1a11ea authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2463967 by Darren Oh, tunic, andypost, alexpott, quietone, mstrelan,...

Issue #2463967 by Darren Oh, tunic, andypost, alexpott, quietone, mstrelan, longwave: Add PHP settings to .user.ini
parent ed5d89dc
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
#
# Apache/PHP/Drupal settings:
# Apache/mod_php/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json|\.user\.ini)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
@@ -24,8 +24,11 @@ AddEncoding gzip svgz

# Most of the following PHP settings cannot be changed at runtime. See
# sites/default/default.settings.php and
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
# changed at runtime.
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be changed
# at runtime.
#
# PHP only reads settings from this file if it is running as an Apache module.
# If PHP is running as a CGI script, see .user.ini.
<IfModule mod_php.c>
  php_value assert.active                   0
</IfModule>

.user.ini

0 → 100644
+10 −0
Original line number Diff line number Diff line
; Most of the following PHP settings cannot be changed at runtime. See
; sites/default/default.settings.php and
; Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be changed
; at runtime.
;
; PHP only reads settings from this file if it is running as a CGI script. If
; PHP is running as an Apache module, see .htaccess.

; Disable PHP assertions.
assert.active = 0
+2 −1
Original line number Diff line number Diff line
@@ -495,7 +495,7 @@
            "dist": {
                "type": "path",
                "url": "core",
                "reference": "cc2af7de02a19bfde449293a84468f5fb1e33cea"
                "reference": "436f1c4b149b110c60db014909edf6ff2e6fc9f9"
            },
            "require": {
                "asm89/stack-cors": "^2.1",
@@ -585,6 +585,7 @@
                        "[web-root]/.eslintrc.json": "assets/scaffold/files/eslintrc.json",
                        "[web-root]/.ht.router.php": "assets/scaffold/files/ht.router.php",
                        "[web-root]/.htaccess": "assets/scaffold/files/htaccess",
                        "[web-root]/.user.ini": "assets/scaffold/files/user.ini",
                        "[web-root]/example.gitignore": "assets/scaffold/files/example.gitignore",
                        "[web-root]/index.php": "assets/scaffold/files/index.php",
                        "[web-root]/INSTALL.txt": "assets/scaffold/files/drupal.INSTALL.txt",
+7 −4
Original line number Diff line number Diff line
#
# Apache/PHP/Drupal settings:
# Apache/mod_php/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
<FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config|yarn\.lock|package\.json|\.user\.ini)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
@@ -24,8 +24,11 @@ AddEncoding gzip svgz

# Most of the following PHP settings cannot be changed at runtime. See
# sites/default/default.settings.php and
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
# changed at runtime.
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be changed
# at runtime.
#
# PHP only reads settings from this file if it is running as an Apache module.
# If PHP is running as a CGI script, see .user.ini.
<IfModule mod_php.c>
  php_value assert.active                   0
</IfModule>
+10 −0
Original line number Diff line number Diff line
; Most of the following PHP settings cannot be changed at runtime. See
; sites/default/default.settings.php and
; Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be changed
; at runtime.
;
; PHP only reads settings from this file if it is running as a CGI script. If
; PHP is running as an Apache module, see .htaccess.

; Disable PHP assertions.
assert.active = 0
Loading