1 $ErrorActionPreference = "Stop" 2 3 Set-Location 'C:\projects\ext-fiber' 4 5 $task = New-Item 'task.bat' -Force 6 Add-Content $task "call phpize 2>&1" 7 Add-Content $task "call configure --enable-fiber --enable-debug-pack 2>&1" 8 Add-Content $task "nmake /nologo 2>&1" 9 Add-Content $task "exit %errorlevel%" 10 & "C:\build-cache\php-sdk-$env:BIN_SDK_VER\phpsdk-$env:VC-$env:ARCH.bat" -t $task 11 if (-not $?) { 12 throw "build failed with errorlevel $LastExitCode" 13 } 14