From 5b6f4a3e5f47718c098e728b3dfe7766cb016369 Mon Sep 17 00:00:00 2001 From: Irfan Hardiyanto Date: Mon, 22 Jun 2026 16:09:08 +0700 Subject: [PATCH 1/2] fix: v1.8.3 - build sodium + ship pecl on Linux The Linux from-source build omitted two things that break common Laravel projects: - `--with-sodium` was missing, so ext-sodium was never compiled. Packages like lcobucci/jwt require ext-sodium and composer install fails with "ext-sodium is missing from your system". - `--with-pear` was missing, so the `pecl` binary was never installed. `phpvm ext install ` and `phpvm ext laravel` (redis via PECL) failed with "pecl not found. It should be installed with PHP." Also add libsodium dev headers to the dependency hints for apt / dnf / yum / pacman / zypper. Windows is unaffected (it uses prebuilt binaries that already bundle sodium and fetch PECL DLLs). Co-Authored-By: Claude Opus 4.8 --- linux/phpvm.sh | 13 ++++++++----- version.txt | 2 +- windows/phpvm.ps1 | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/linux/phpvm.sh b/linux/phpvm.sh index 63bec29..d13a381 100644 --- a/linux/phpvm.sh +++ b/linux/phpvm.sh @@ -10,7 +10,7 @@ # phpvm use 8.3.0 # ============================================================================== -PHPVM_VERSION="1.8.2" +PHPVM_VERSION="1.8.3" PHPVM_DIR="${PHPVM_DIR:-$HOME/.phpvm}" PHPVM_VERSIONS="$PHPVM_DIR/versions" PHPVM_CURRENT="$PHPVM_DIR/current" @@ -261,7 +261,7 @@ _phpvm_print_dep_install() { _dim " libxml2-dev libsqlite3-dev libssl-dev libcurl4-openssl-dev \\" _dim " libonig-dev libzip-dev zlib1g-dev libreadline-dev \\" _dim " libpng-dev libjpeg-dev libwebp-dev libfreetype6-dev \\" - _dim " libgmp-dev libmysqlclient-dev libpq-dev" + _dim " libgmp-dev libsodium-dev libmysqlclient-dev libpq-dev" ;; dnf|yum) _dim " sudo $pm install -y \\" @@ -269,19 +269,20 @@ _phpvm_print_dep_install() { _dim " libxml2-devel sqlite-devel openssl-devel libcurl-devel \\" _dim " oniguruma-devel libzip-devel zlib-devel readline-devel \\" _dim " libpng-devel libjpeg-devel libwebp-devel freetype-devel \\" - _dim " gmp-devel mysql-devel postgresql-devel" + _dim " gmp-devel libsodium-devel mysql-devel postgresql-devel" ;; pacman) _dim " sudo pacman -S --needed \\" _dim " base-devel autoconf bison re2c pkg-config \\" _dim " libxml2 sqlite openssl curl oniguruma libzip \\" - _dim " libpng libjpeg libwebp freetype2 gmp mysql-libs postgresql-libs" + _dim " libpng libjpeg libwebp freetype2 gmp libsodium mysql-libs postgresql-libs" ;; zypper) _dim " sudo zypper install -y \\" _dim " gcc make autoconf bison re2c pkg-config \\" _dim " libxml2-devel sqlite3-devel libopenssl-devel libcurl-devel \\" - _dim " oniguruma-devel libzip-devel zlib-devel readline-devel" + _dim " oniguruma-devel libzip-devel zlib-devel readline-devel \\" + _dim " libsodium-devel" ;; *) _dim " Please install: gcc make autoconf bison re2c pkg-config" @@ -410,6 +411,7 @@ phpvm_install() { "--enable-sockets" "--enable-exif" "--with-openssl" + "--with-sodium" "--with-curl" "--with-zlib" "--with-readline" @@ -427,6 +429,7 @@ phpvm_install() { "--with-pgsql" "--with-pdo-pgsql" "--with-onig" + "--with-pear" ) cd "$src_dir" || { diff --git a/version.txt b/version.txt index 53adb84..a7ee35a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.8.2 +1.8.3 diff --git a/windows/phpvm.ps1 b/windows/phpvm.ps1 index 9bb2675..98845fc 100644 --- a/windows/phpvm.ps1 +++ b/windows/phpvm.ps1 @@ -15,7 +15,7 @@ Set-StrictMode -Version Latest $ErrorActionPreference = "Stop" # -- Constants ----------------------------------------------------------------- -$PHPVM_VERSION = "1.8.2" +$PHPVM_VERSION = "1.8.3" $PHPVM_DIR = if ($env:PHPVM_DIR) { $env:PHPVM_DIR } else { "$env:USERPROFILE\.phpvm" } $VERSIONS_DIR = "$PHPVM_DIR\versions" $CURRENT_LINK = "$PHPVM_DIR\current" From 54fbcfb807f2d40289687c316da66b34ac9bc5f2 Mon Sep 17 00:00:00 2001 From: Irfan Hardiyanto Date: Mon, 22 Jun 2026 16:11:04 +0700 Subject: [PATCH 2/2] fix: bump version in install scripts to 1.8.3 Co-Authored-By: Claude Opus 4.8 --- linux/install.sh | 2 +- windows/install.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/install.sh b/linux/install.sh index 68efcfc..9a0cc4f 100644 --- a/linux/install.sh +++ b/linux/install.sh @@ -6,7 +6,7 @@ set -e -PHPVM_VERSION="1.8.2" +PHPVM_VERSION="1.8.3" PHPVM_DIR="${PHPVM_DIR:-$HOME/.phpvm}" PHPVM_REPO="https://raw.githubusercontent.com/devhardiyanto/phpvm/main" diff --git a/windows/install.ps1 b/windows/install.ps1 index 29c5670..96914f7 100644 --- a/windows/install.ps1 +++ b/windows/install.ps1 @@ -7,7 +7,7 @@ Set-StrictMode -Version Latest $ErrorActionPreference = "Stop" -$PHPVM_VERSION = "1.8.2" +$PHPVM_VERSION = "1.8.3" $PHPVM_DIR = if ($env:PHPVM_DIR) { $env:PHPVM_DIR } else { "$env:USERPROFILE\.phpvm" } $PHPVM_BIN = "$PHPVM_DIR\bin"