mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-31 18:04:10 +07:00
Bump version to 1.7.4
This commit is contained in:
@ -128,6 +128,7 @@ export async function addExtensionLinux(
|
||||
version +
|
||||
pipe;
|
||||
break;
|
||||
// match 7.0phalcon3...7.3phalcon3 or 7.2phalcon4...7.4phalcon4
|
||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||
script +=
|
||||
'\nsh ' +
|
||||
|
@ -11,6 +11,7 @@ Param (
|
||||
$version
|
||||
)
|
||||
|
||||
# Function to install phalcon
|
||||
Function Install-Phalcon() {
|
||||
if ($extension_version -eq '4') {
|
||||
Install-Phpextension phalcon -MinimumStability stable -Path $php_dir
|
||||
|
@ -1,3 +1,4 @@
|
||||
# Function to log result of a operation
|
||||
add_log() {
|
||||
mark=$1
|
||||
subject=$2
|
||||
@ -9,6 +10,7 @@ add_log() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to update php ppa
|
||||
update_ppa() {
|
||||
if [ "$ppa_updated" = "false" ]; then
|
||||
find /etc/apt/sources.list.d -type f -name 'ondrej-ubuntu-php*.list' -exec sudo DEBIAN_FRONTEND=noninteractive apt-get update -o Dir::Etc::sourcelist="{}" ';' >/dev/null 2>&1
|
||||
@ -16,6 +18,7 @@ update_ppa() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to install phalcon
|
||||
install_phalcon() {
|
||||
extension=$1
|
||||
version=$2
|
||||
@ -24,6 +27,7 @@ install_phalcon() {
|
||||
add_log "$cross" "$extension" "Could not install $extension on PHP $semver"
|
||||
}
|
||||
|
||||
# Function to remove an extensions
|
||||
remove_extension() {
|
||||
extension=$1
|
||||
sudo sed -i "/$extension/d" "$ini_file"
|
||||
|
Reference in New Issue
Block a user