mlocati / powershell-phpmanager

A PowerShell module to install/update PHP, PHP extensions and Composer on Windows

Home Page:https://www.powershellgallery.com/packages/PhpManager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unhandled exit code when vcredist is not installed.

shivammathur opened this issue · comments

On GitHub Actions, I'm getting a different exit code when vcredist is not installed for x86 version of PHP.

0xC0000135 and 0xC0000139 are checked, but I'm getting 0xc000007b.

if ($exeExitCode -eq $Script:STATUS_DLL_NOT_FOUND -or $exeExitCode -eq $Script:ENTRYPOINT_NOT_FOUND -or $exeOutput -match 'vcruntime.*is not compatible with this PHP build') {

Logs: https://github.com/shivammathur/test-setup-php/actions/runs/3918173849/jobs/6698400981#step:3:1

That 0xC000007B error is named STATUS_INVALID_IMAGE_FORMAT: maybe because a 32 bit program is trying to use a 64 bit DLL?
BTW, what about #104 ?

BTW, what about #104 ?

Sorry, #105

Yes, that should fix it.

@mlocati Please tag a patch release.

I'm not in front of a PC at the moment, but of course I'll do that asap

@mlocati Please tag a patch release.

Done.

Thanks for fixing this and the release.