From 9c6fc08e77ecf9bf05be90350633e4d9cfda6291 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 15 Nov 2020 12:53:44 +0100 Subject: [PATCH] php 8.0.0 Closes #65698. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> --- Aliases/{php@7.4 => php@8.0} | 0 Formula/php.rb | 16 +++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) rename Aliases/{php@7.4 => php@8.0} (100%) diff --git a/Aliases/php@7.4 b/Aliases/php@8.0 similarity index 100% rename from Aliases/php@7.4 rename to Aliases/php@8.0 diff --git a/Formula/php.rb b/Formula/php.rb index c10fe412001..46f01a9a051 100644 --- a/Formula/php.rb +++ b/Formula/php.rb @@ -2,9 +2,9 @@ class Php < Formula desc "General-purpose scripting language" homepage "https://www.php.net/" # Should only be updated if the new version is announced on the homepage, https://www.php.net/ - url "https://www.php.net/distributions/php-7.4.13.tar.xz" - mirror "https://fossies.org/linux/www/php-7.4.13.tar.xz" - sha256 "aead303e3abac23106529560547baebbedba0bb2943b91d5aa08fff1f41680f4" + url "https://www.php.net/distributions/php-8.0.0.tar.xz" + mirror "https://fossies.org/linux/www/php-8.0.0.tar.xz" + sha256 "b5278b3eef584f0c075d15666da4e952fa3859ee509d6b0cc2ed13df13f65ebb" license "PHP-3.01" livecheck do @@ -281,7 +281,7 @@ class Php < Formula def caveats <<~EOS To enable PHP in Apache add the following to httpd.conf and restart Apache: - LoadModule php7_module #{opt_lib}/httpd/modules/libphp7.so + LoadModule php_module #{opt_lib}/httpd/modules/libphp.so SetHandler application/x-httpd-php @@ -359,16 +359,10 @@ class Php < Formula DirectoryIndex index.php EOS - php_module = if head? - "LoadModule php_module #{lib}/httpd/modules/libphp.so" - else - "LoadModule php7_module #{lib}/httpd/modules/libphp7.so" - end - (testpath/"httpd.conf").write <<~EOS #{main_config} LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so - #{php_module} + LoadModule php_module #{lib}/httpd/modules/libphp.so SetHandler application/x-httpd-php