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

Merge branch 'PHP-8.4'

* PHP-8.4:
  Fix GH-19681 PHP_EXPAND_PATH broken with bash 5.3.0
This commit is contained in:
Remi Collet
2025-09-05 09:10:40 +02:00

View File

@@ -54,7 +54,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
])