Installing extensions on Windows can fail when the release asset uses x64 in the filename instead of x86_64, or omits the v prefix from the version string.
For example, pie install apcu/apcu on Windows fails because PIE looks for php_apcu-v5.1.28-8.5-ts-vs17-x86_64.zip but the actual asset on downloads.php.net is named php_apcu-5.1.28-8.5-ts-vs17-x64.zip (different arch label, no v prefix).
Similarly, the DLL inside the zip is just php_apcu.dll (no version/platform suffix), which PIE doesn't check for.
> php pie-1.4.x-nightly.phar install apcu/apcu
🥧 PHP Installer for Extensions (PIE) 1.3.8@adfe984, from The PHP Foundation
This command may need elevated privileges, and may prompt you for your password.
You are running PHP 8.5.1
Target PHP installation: 8.5.1 ts, vs17, on Windows x86_64 (from C:\FlyEnv\PhpWebStudy-Data\env\php\php.exe)
Found package: apcu/apcu:v5.1.28 which provides ext-apcu
In CouldNotDetermineDownloadUrlMethod.php line 31:
Could not download apcu/apcu using windows-binary method: Windows archive with prebuilt extension for apcu/apcu was not attached on release v5.1.28 - looked for one of "php_apcu-v5.1.28-8.5-ts-vs17-x86_64.zip, php_apcu-v5.1.28-8.5-vs17-ts-x86_64.zip"
Environment: PIE 1.3.8 / nightly, Windows, PHP 8.5.1 ts vs17 x86_64
Installing extensions on Windows can fail when the release asset uses
x64in the filename instead ofx86_64, or omits thevprefix from the version string.For example,
pie install apcu/apcuon Windows fails because PIE looks forphp_apcu-v5.1.28-8.5-ts-vs17-x86_64.zipbut the actual asset on downloads.php.net is namedphp_apcu-5.1.28-8.5-ts-vs17-x64.zip(different arch label, novprefix).Similarly, the DLL inside the zip is just
php_apcu.dll(no version/platform suffix), which PIE doesn't check for.Environment: PIE 1.3.8 / nightly, Windows, PHP 8.5.1 ts vs17 x86_64