summaryrefslogtreecommitdiffstats
path: root/php-7.4.33-bash53.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-12-17 10:01:16 +0100
committerRemi Collet <remi@php.net>2025-12-17 10:01:16 +0100
commit4c8b20e1bb213d1651b3f1cfcd9464bd67959fcb (patch)
tree76bab12dbc028dd24a925d4af655c05e2e4dde06 /php-7.4.33-bash53.patch
parentc21ad1d63bdc2d36ea4abbb11a4097709f463117 (diff)
Update to 8.2.30 - http://www.php.net/releases/8_2_30.phpHEADmaster
Diffstat (limited to 'php-7.4.33-bash53.patch')
-rw-r--r--php-7.4.33-bash53.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/php-7.4.33-bash53.patch b/php-7.4.33-bash53.patch
new file mode 100644
index 0000000..0b09e2a
--- /dev/null
+++ b/php-7.4.33-bash53.patch
@@ -0,0 +1,26 @@
+From 98d2b923243d406b3d26f0770ac02f917729b948 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 4 Sep 2025 09:01:49 +0200
+Subject: [PATCH] Fix GH-19681 PHP_EXPAND_PATH broken with bash 5.3.0
+
+---
+ build/php.m4 | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/build/php.m4 b/build/php.m4
+index 142ddf08fd98b..e5ead0f4c44af 100644
+--- a/build/php.m4
++++ b/build/php.m4
+@@ -64,7 +64,11 @@ AC_DEFUN([PHP_EXPAND_PATH],[
+ changequote({,})
+ ep_dir=`echo $1|$SED 's%/*[^/][^/]*/*$%%'`
+ changequote([,])
+- ep_realdir=`(cd "$ep_dir" && pwd)`
++ if test -z $ep_dir ; then
++ ep_realdir=`(pwd)`
++ else
++ ep_realdir=`(cd "$ep_dir" && pwd)`
++ fi
+ $2="$ep_realdir"/`basename "$1"`
+ fi
+ ])