Skip to content

Commit 6263b56

Browse files
committed
make xdebug search PHP 8.1 first
1 parent 61a6c2c commit 6263b56

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/makefile/xdebug.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ xdebug_status() {
1616
}
1717

1818
xdebug_find_file() {
19-
if [ -f /etc/php8/conf.d/50_xdebug.ini ]; then
20-
echo /etc/php8/conf.d/50_xdebug.ini
21-
elif [ -f /etc/php81/conf.d/50_xdebug.ini ]; then
19+
if [ -f /etc/php81/conf.d/50_xdebug.ini ]; then
2220
echo /etc/php81/conf.d/50_xdebug.ini
21+
elif [ -f /etc/php82/conf.d/50_xdebug.ini ]; then
22+
echo /etc/php82/conf.d/50_xdebug.ini
23+
elif [ -f /etc/php8/conf.d/50_xdebug.ini ]; then
24+
echo /etc/php8/conf.d/50_xdebug.ini
2325
else
24-
printf "%bXdebug ini file not found%b\n" "${RED}" "${NC}" && exit 1
26+
printf "%bXdebug ini file not found%b\n" "${RED}" "${NC}" && exit 1
2527
fi
2628
}
2729

0 commit comments

Comments
 (0)