summaryrefslogtreecommitdiffstats
path: root/php-7.4.33-bash53.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-12-17 10:57:54 +0100
committerRemi Collet <remi@php.net>2025-12-17 10:57:54 +0100
commit77305ec39e7214bd36a29a98dffa6f1a74ec343f (patch)
tree04513a73d14bb35d710d3e2e38fbdf803573a22b /php-7.4.33-bash53.patch
parente18898615d77070fd708f3dc834aac625bde3344 (diff)
Update to 8.1.34 - http://www.php.net/releases/8_1_34.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
+ ])