Skip to content

Commit

Permalink
Revert to PhpManager for master on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 7, 2020
1 parent 7b56e44 commit 720a989
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/scripts/win32.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,8 @@ if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version
}
if ($version -eq $master_version) {
$version = 'master'
Invoke-WebRequest -UseBasicParsing -Uri https://dl.bintray.com/shivammathur/php/Install-PhpMaster.ps1 -OutFile $php_dir\Install-PhpMaster.ps1 > $null 2>&1
& $php_dir\Install-PhpMaster.ps1 -Architecture $arch -ThreadSafe $ts -Path $php_dir
} else {
Install-Php -Version $version -Architecture $arch -ThreadSafe $ts -InstallVC -Path $php_dir -TimeZone UTC -InitialPhpIni Production -Force > $null 2>&1
}
Install-Php -Version $version -Architecture $arch -ThreadSafe $ts -InstallVC -Path $php_dir -TimeZone UTC -InitialPhpIni Production -Force > $null 2>&1
} else {
if($env:update -eq 'true') {
Update-Php $php_dir >$null 2>&1
Expand All @@ -358,5 +355,11 @@ if($version -lt "5.5") {
} else {
Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir
}
if($version -eq "master") {
"xdebug", "pcov" | ForEach-Object { Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/shivammathur/php-extensions-windows/releases/latest/download/php_$env:PHPTS`_$arch`_$_.dll" -OutFile $ext_dir"\php`_$_.dll" }
Rename-Item $ext_dir\php_oci8_12c.dll -NewName $ext_dir\php_oci8.dll
Set-PhpIniKey -Key 'opcache.jit_buffer_size' -Value '256M' -Path $php_dir
Set-PhpIniKey -Key 'opcache.jit' -Value '1235' -Path $php_dir
}
Update-PhpCAInfo -Path $php_dir -Source $cert_source
Add-Log $tick "PHP" "$status PHP $($installed.FullVersion)"

0 comments on commit 720a989

Please sign in to comment.