Validate cached Xdebug 2 on macOS

This commit is contained in:
Shivam Mathur
2026-09-03 20:10:28 +05:30
parent e4c0f64cb6
commit 1d62418c5a
6 changed files with 21 additions and 3 deletions
+7
View File
@@ -21,6 +21,13 @@ check_extension() {
fi
}
# Function to test the loaded version of an extension.
check_extension_version() {
local extension=$1
local ext_version=$2
php -d display_errors=0 -r "exit(phpversion(\$argv[1]) === \$argv[2] ? 0 : 1);" -- "$extension" "$ext_version" >/dev/null 2>&1
}
# Function to check if extension is shared
shared_extension() {
[ -e "${ext_dir:?}/$1.so" ]