Skip to content

Commit

Permalink
Merge pull request #198473 from Homebrew/bump-php-8.4.1
Browse files Browse the repository at this point in the history
php 8.4.1 php@8.3 8.3.14 (new formula)
  • Loading branch information
BrewTestBot authored Nov 22, 2024
2 parents 6eb6313 + 7525a2d commit e395ba7
Show file tree
Hide file tree
Showing 8 changed files with 539 additions and 52 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,7 @@ php-code-sniffer
php-cs-fixer
php@8.1
php@8.2
php@8.3
phpmd
phpmyadmin
phpunit
Expand Down
File renamed without changes.
13 changes: 10 additions & 3 deletions Formula/d/deployer.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
class Deployer < Formula
desc "Deployment tool written in PHP with support for popular frameworks"
homepage "https://deployer.org/"
# Bump to php 8.4 on the next release, if possible.
url "https://github.com/deployphp/deployer/releases/download/v7.5.5/deployer.phar"
sha256 "30c1c09038b0c390f40d21b3cb0a9e1ff46cfeefe4da1c834aeca6adfb5952d4"
license "MIT"
revision 1

bottle do
sha256 cellar: :any_skip_relocation, all: "bafc1e45e6c3ee51ac93ab5ce78373e6549c1b50c6d6a4cebaa32174b8df3d0d"
sha256 cellar: :any_skip_relocation, all: "7e54fce47176409d67d6508aa9b661e62600d211fe8ad81948029823f7a51b32"
end

depends_on "php"
depends_on "php@8.3"

def install
bin.install "deployer.phar" => "dep"
libexec.install "deployer.phar" => "dep"

(bin/"dep").write <<~EOS
#!#{Formula["php@8.3"].opt_bin}/php
<?php require '#{libexec}/dep';
EOS
end

test do
Expand Down
8 changes: 5 additions & 3 deletions Formula/p/php-cs-fixer.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
class PhpCsFixer < Formula
desc "Tool to automatically fix PHP coding standards issues"
homepage "https://cs.symfony.com/"
# Bump to php 8.4 on the next release, if possible.
url "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/v3.64.0/php-cs-fixer.phar"
sha256 "7d67bbf0635df7239e0a09aef9999f6f91bbc7ef55541ee06aaed727453bfa5e"
license "MIT"
revision 1

bottle do
sha256 cellar: :any_skip_relocation, all: "5e7bb7d7d6389d482cb7f639e9aa630bf194b2e8564b07bdab4156f571f584b1"
sha256 cellar: :any_skip_relocation, all: "a9de27a9df1fdfb1b3555a6fe04b98a025a1bfb97fe893b39c6067f3a37b18ad"
end

depends_on "php"
depends_on "php@8.3"

def install
libexec.install "php-cs-fixer.phar"

(bin/"php-cs-fixer").write <<~EOS
#!#{Formula["php"].opt_bin}/php
#!#{Formula["php@8.3"].opt_bin}/php
<?php require '#{libexec}/php-cs-fixer.phar';
EOS
end
Expand Down
48 changes: 24 additions & 24 deletions Formula/p/php.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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-8.3.14.tar.xz"
mirror "https://fossies.org/linux/www/php-8.3.14.tar.xz"
sha256 "58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7"
url "https://www.php.net/distributions/php-8.4.1.tar.xz"
mirror "https://fossies.org/linux/www/php-8.4.1.tar.xz"
sha256 "94c8a4fd419d45748951fa6d73bd55f6bdf0adaefb8814880a67baa66027311f"
license "PHP-3.01"

livecheck do
Expand All @@ -13,12 +13,12 @@ class Php < Formula
end

bottle do
sha256 arm64_sequoia: "9fa13ceaebc79ab1738fcf8ce14e911c17e2e463be48ce45ccaa8d22a97ce441"
sha256 arm64_sonoma: "6fc262dc93f74af202a0b738a7ff1d87684c9d51499259c5521895a69abf04b1"
sha256 arm64_ventura: "3b89735b24a9278141c32a5f0785ceb17bb9f37f3e9f0c06efea5f5bfd859fa4"
sha256 sonoma: "0d9554ce4db41274761f8b4216683647f3e43a2574f245518b2a678a3bafdaf7"
sha256 ventura: "d85244f407ee83fb73c000425d8c2b8203ed6e3a86e83457f685fe547cf71c48"
sha256 x86_64_linux: "c9bcb2a6fc49e33d6deb9fdeb746e127bd061ae0b875019af3314e3226184b05"
sha256 arm64_sequoia: "3800e45d5cd63c32c2f7218d16f58582b7fa6cdef5b95ca455e31b3205fcac3f"
sha256 arm64_sonoma: "d0d48b74cee979feaf61163f997171d4be88aee7bd05d34f7b79086fc9bfee07"
sha256 arm64_ventura: "8457b0bbe50e7a56a498594f09f66aa645403a870632a9a376d8041446d2558a"
sha256 sonoma: "9c19cac2676029b1166c92ef06da10ff8fe8812a7a85f847e28a030f1050c77d"
sha256 ventura: "67374319228f35a65d26cdd7220f78ec82135ef6c832597ac3d4e14b96b2b8b5"
sha256 x86_64_linux: "5b4f182ecbf9f3fa0a455b3f7a22374b5af59ddb231927a0207b6a31c85b094d"
end

head do
Expand All @@ -29,7 +29,7 @@ class Php < Formula
end

depends_on "httpd" => [:build, :test]
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "apr"
depends_on "apr-util"
depends_on "argon2"
Expand Down Expand Up @@ -72,11 +72,11 @@ def install
system "./buildconf", "--force"

inreplace "configure" do |s|
s.gsub! "APACHE_THREADED_MPM=`$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes'`",
"APACHE_THREADED_MPM="
s.gsub! "APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`",
s.gsub! "$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes' >/dev/null 2>&1",
"false"
s.gsub! "APXS_LIBEXECDIR='$(INSTALL_ROOT)'$($APXS -q LIBEXECDIR)",
"APXS_LIBEXECDIR='$(INSTALL_ROOT)#{lib}/httpd/modules'"
s.gsub! "-z `$APXS -q SYSCONFDIR`",
s.gsub! "-z $($APXS -q SYSCONFDIR)",
"-z ''"
end

Expand Down Expand Up @@ -429,10 +429,10 @@ def caveats

__END__
diff --git a/build/php.m4 b/build/php.m4
index 3624a33a8e..d17a635c2c 100644
index e45b22b7..4624b390 100644
--- a/build/php.m4
+++ b/build/php.m4
@@ -425,7 +425,7 @@ dnl
@@ -429,7 +429,7 @@ dnl
dnl Adds a path to linkpath/runpath (LDFLAGS).
dnl
AC_DEFUN([PHP_ADD_LIBPATH],[
Expand All @@ -441,15 +441,15 @@ def caveats
PHP_EXPAND_PATH($1, ai_p)
ifelse([$2],,[
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
@@ -470,7 +470,7 @@ dnl
dnl Add an include path. If before is 1, add in the beginning of INCLUDES.
@@ -476,7 +476,7 @@ dnl paths are prepended to the beginning of INCLUDES.
dnl
AC_DEFUN([PHP_ADD_INCLUDE],[
- if test "$1" != "/usr/include"; then
+ if test "$1" != "$PHP_OS_SDKPATH/usr/include"; then
PHP_EXPAND_PATH($1, ai_p)
PHP_RUN_ONCE(INCLUDEPATH, $ai_p, [
if test "$2"; then
AC_DEFUN([PHP_ADD_INCLUDE], [
for include_path in m4_normalize(m4_expand([$1])); do
- AS_IF([test "$include_path" != "/usr/include"], [
+ AS_IF([test "$include_path" != "$PHP_OS_SDKPATH/usr/include"], [
PHP_EXPAND_PATH([$include_path], [ai_p])
PHP_RUN_ONCE([INCLUDEPATH], [$ai_p], [m4_ifnblank([$2],
[INCLUDES="-I$ai_p $INCLUDES"],
diff --git a/configure.ac b/configure.ac
index 36c6e5e3e2..71b1a16607 100644
--- a/configure.ac
Expand Down
Loading

0 comments on commit e395ba7

Please sign in to comment.