Compare commits

...

2 Commits

Author SHA1 Message Date
efffd0e4f2 Bump version to 2.30.3 2024-04-21 18:55:19 +05:30
d802457674 Fix reading extension_dir in PHP 8.4 on macOS 2024-04-21 18:16:08 +05:30
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "setup-php",
"version": "2.30.2",
"version": "2.30.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "setup-php",
"version": "2.30.2",
"version": "2.30.3",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.1",

View File

@ -1,6 +1,6 @@
{
"name": "setup-php",
"version": "2.30.2",
"version": "2.30.3",
"private": false,
"description": "Setup PHP for use with GitHub Actions",
"main": "lib/install.js",

View File

@ -227,7 +227,7 @@ setup_php() {
status="Updated to"
fi
php_config="$(command -v php-config)"
ext_dir="$(grep 'extension_dir=' "$php_config" | cut -d "'" -f 2)"
ext_dir="$(sed -n "s/.*extension_dir=['\"]\(.*\)['\"].*/\1/p" "$php_config")"
ini_dir="$(php_ini_path)"
scan_dir="$(get_scan_dir)"
ini_file="$ini_dir"/php.ini