diff --git a/.htaccess b/.htaccess index 4d19147cc4..3aa47e6ddb 100644 --- a/.htaccess +++ b/.htaccess @@ -27,11 +27,6 @@ AddEncoding gzip svgz # Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be # changed at runtime. -# PHP 7, Apache 1 and 2. - - php_value assert.active 0 - - # PHP 8, Apache 1 and 2. php_value assert.active 0 diff --git a/composer/Plugin/VendorHardening/FileSecurity.php b/composer/Plugin/VendorHardening/FileSecurity.php index 3d168cca92..cea0685fb3 100644 --- a/composer/Plugin/VendorHardening/FileSecurity.php +++ b/composer/Plugin/VendorHardening/FileSecurity.php @@ -74,9 +74,6 @@ protected static function htaccessPreventExecution() { # If we know how to do it safely, disable the PHP engine entirely. - - php_flag engine off - php_flag engine off diff --git a/core/assets/scaffold/files/htaccess b/core/assets/scaffold/files/htaccess index 4d19147cc4..3aa47e6ddb 100644 --- a/core/assets/scaffold/files/htaccess +++ b/core/assets/scaffold/files/htaccess @@ -27,11 +27,6 @@ AddEncoding gzip svgz # Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be # changed at runtime. -# PHP 7, Apache 1 and 2. - - php_value assert.active 0 - - # PHP 8, Apache 1 and 2. php_value assert.active 0 diff --git a/core/lib/Drupal/Component/FileSecurity/FileSecurity.php b/core/lib/Drupal/Component/FileSecurity/FileSecurity.php index aaebcca680..c21937a8de 100644 --- a/core/lib/Drupal/Component/FileSecurity/FileSecurity.php +++ b/core/lib/Drupal/Component/FileSecurity/FileSecurity.php @@ -72,9 +72,6 @@ protected static function htaccessPreventExecution() { # If we know how to do it safely, disable the PHP engine entirely. - - php_flag engine off - php_flag engine off