mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
* fix curl on windows build needs nghttp2.dll bug * add curl on windows tests * cs fix * fix curl headers * exit powershell properly * reproduce zend_mm_heap corrupted * reproduce zend_mm_heap corrupted * reproduce zend_mm_heap corrupted * add for-libs option for download * add for-libs option for download * add for-libs option for download
13 lines
419 B
PowerShell
13 lines
419 B
PowerShell
$PHP_Exec = ".\runtime\php.exe"
|
|
|
|
if (-not(Test-Path $PHP_Exec)) {
|
|
$PHP_Exec = Get-Command php.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Definition
|
|
if (-not $PHP_Exec) {
|
|
Write-Host "Error: PHP not found, you need to install PHP on your system or use 'bin/setup-runtime'." -ForegroundColor Red
|
|
exit 1
|
|
}
|
|
}
|
|
|
|
& "$PHP_Exec" ("bin/spc") @args
|
|
exit $LASTEXITCODE
|