1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-19681 PHP_EXPAND_PATH broken with bash 5.3.0

This commit is contained in:
Remi Collet
2025-09-04 09:01:49 +02:00
committed by Remi Collet
parent 05133ac962
commit 98d2b92324

View File

@@ -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
])