Skip to content

Commit 98d2b92

Browse files
committed
Fix phpGH-19681 PHP_EXPAND_PATH broken with bash 5.3.0
1 parent 05133ac commit 98d2b92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/php.m4

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ AC_DEFUN([PHP_EXPAND_PATH],[
6464
changequote({,})
6565
ep_dir=`echo $1|$SED 's%/*[^/][^/]*/*$%%'`
6666
changequote([,])
67-
ep_realdir=`(cd "$ep_dir" && pwd)`
67+
if test -z $ep_dir ; then
68+
ep_realdir=`(pwd)`
69+
else
70+
ep_realdir=`(cd "$ep_dir" && pwd)`
71+
fi
6872
$2="$ep_realdir"/`basename "$1"`
6973
fi
7074
])

0 commit comments

Comments
 (0)