Skip to content

fix(ext): resolve sqlsrv PECL install across Win/Linux/macOS#12

Merged
devhardiyanto merged 2 commits into
mainfrom
fix/sqlsrv-pecl-redirect
Jun 15, 2026
Merged

fix(ext): resolve sqlsrv PECL install across Win/Linux/macOS#12
devhardiyanto merged 2 commits into
mainfrom
fix/sqlsrv-pecl-redirect

Conversation

@devhardiyanto

Copy link
Copy Markdown
Owner

Windows: rewrite Test-URLExists with Invoke-WebRequest so HEAD probes follow the windows.php.net -> downloads.php.net 302 redirect (and fall back to a ranged GET when mirrors reject HEAD). This unblocks sqlsrv / pdo_sqlsrv installs that were failing with "No compatible package found" even though the zip exists upstream.

Linux/macOS: pre-flight unixODBC headers before pecl install sqlsrv| pdo_sqlsrv and surface a package-manager-specific install hint instead of letting the build fail mid-compile. Covers apt, dnf, yum, pacman, zypper and brew (incl. Apple Silicon /opt/homebrew paths).

Both platforms now print a post-install advisory pointing at the Microsoft ODBC Driver for SQL Server and the MS Learn setup guide, since the PHP extension alone is not enough to connect at runtime.

Bumps phpvm to 1.7.1.

Windows: rewrite Test-URLExists with Invoke-WebRequest so HEAD probes
follow the windows.php.net -> downloads.php.net 302 redirect (and fall
back to a ranged GET when mirrors reject HEAD). This unblocks sqlsrv /
pdo_sqlsrv installs that were failing with "No compatible package
found" even though the zip exists upstream.

Linux/macOS: pre-flight unixODBC headers before pecl install sqlsrv|
pdo_sqlsrv and surface a package-manager-specific install hint instead
of letting the build fail mid-compile. Covers apt, dnf, yum, pacman,
zypper and brew (incl. Apple Silicon /opt/homebrew paths).

Both platforms now print a post-install advisory pointing at the
Microsoft ODBC Driver for SQL Server and the MS Learn setup guide,
since the PHP extension alone is not enough to connect at runtime.

Bumps phpvm to 1.7.1.
@devhardiyanto devhardiyanto self-assigned this Jun 15, 2026
windows/phpvm.ps1 has no BOM, so PSUseBOMForUnicodeEncodedFile fires
the moment any non-ASCII char appears. Swap the U+2014 em-dash in a
comment for plain ASCII to keep the file pure ASCII like main.
@devhardiyanto devhardiyanto merged commit a4d9c28 into main Jun 15, 2026
3 checks passed
@devhardiyanto devhardiyanto deleted the fix/sqlsrv-pecl-redirect branch June 22, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant