Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

set -e

PHPVM_VERSION="1.7.1"
PHPVM_VERSION="1.7.2"
PHPVM_DIR="${PHPVM_DIR:-$HOME/.phpvm}"
PHPVM_REPO="https://raw.githubusercontent.com/devhardiyanto/phpvm/main"

Expand Down
2 changes: 1 addition & 1 deletion linux/phpvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# phpvm use 8.3.0
# ==============================================================================

PHPVM_VERSION="1.7.1"
PHPVM_VERSION="1.7.2"
PHPVM_DIR="${PHPVM_DIR:-$HOME/.phpvm}"
PHPVM_VERSIONS="$PHPVM_DIR/versions"
PHPVM_CURRENT="$PHPVM_DIR/current"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.1
1.7.2
2 changes: 1 addition & 1 deletion windows/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"

$PHPVM_VERSION = "1.7.1"
$PHPVM_VERSION = "1.7.2"
$PHPVM_DIR = if ($env:PHPVM_DIR) { $env:PHPVM_DIR } else { "$env:USERPROFILE\.phpvm" }
$PHPVM_BIN = "$PHPVM_DIR\bin"

Expand Down
11 changes: 6 additions & 5 deletions windows/phpvm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
param(
[Parameter(Position = 0)] [string]$Command = "",
[Parameter(Position = 1)] [string]$SubOrVer = "",
[Parameter(Position = 2)] [string]$Arg2 = ""
[Parameter(Position = 2)] [string]$Arg2 = "",
[Parameter(Position = 3)] [string]$Arg3 = ""
)

Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"

# -- Constants -----------------------------------------------------------------
$PHPVM_VERSION = "1.7.1"
$PHPVM_VERSION = "1.7.2"
$PHPVM_DIR = if ($env:PHPVM_DIR) { $env:PHPVM_DIR } else { "$env:USERPROFILE\.phpvm" }
$VERSIONS_DIR = "$PHPVM_DIR\versions"
$CURRENT_LINK = "$PHPVM_DIR\current"
Expand Down Expand Up @@ -1055,7 +1056,7 @@ function Ext-Laravel ([string]$preset = "full") {
Write-Host ""
}

function Invoke-Ext ([string]$sub, [string]$name) {
function Invoke-Ext ([string]$sub, [string]$name, [string]$ver = "") {
switch ($sub.ToLower()) {
{ $_ -in "list", "ls" } { Ext-List }
"loaded" { Ext-Loaded }
Expand All @@ -1064,7 +1065,7 @@ function Invoke-Ext ([string]$sub, [string]$name) {
"install" {
if (-not $name) { Write-Err "Usage: phpvm ext install <name> [version]"; return }
if ($name.ToLower() -eq "xdebug") { Install-XDebug }
else { Install-PECLExt $name $Arg2 }
else { Install-PECLExt $name $ver }
}
"info" { if ($name) { Ext-Info $name } else { Write-Err "Usage: phpvm ext info <name>" } }
"laravel" { Ext-Laravel $name }
Expand Down Expand Up @@ -1316,7 +1317,7 @@ if (-not $env:PHPVM_NO_ENTRY) {
"which" { Invoke-Which }
"ini" { Invoke-Ini }
"fix-ini" { Invoke-FixIni }
"ext" { Invoke-Ext $SubOrVer $Arg2 }
"ext" { Invoke-Ext $SubOrVer $Arg2 $Arg3 }
"auto" { Invoke-Auto }
"hook" { Invoke-Hook $SubOrVer }
"composer" { Invoke-Composer }
Expand Down