Skip to content

Commit 720a989

Browse files
committed
Revert to PhpManager for master on Windows
1 parent 7b56e44 commit 720a989

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/scripts/win32.ps1

+7-4
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,8 @@ if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version
333333
}
334334
if ($version -eq $master_version) {
335335
$version = 'master'
336-
Invoke-WebRequest -UseBasicParsing -Uri https://dl.bintray.com/shivammathur/php/Install-PhpMaster.ps1 -OutFile $php_dir\Install-PhpMaster.ps1 > $null 2>&1
337-
& $php_dir\Install-PhpMaster.ps1 -Architecture $arch -ThreadSafe $ts -Path $php_dir
338-
} else {
339-
Install-Php -Version $version -Architecture $arch -ThreadSafe $ts -InstallVC -Path $php_dir -TimeZone UTC -InitialPhpIni Production -Force > $null 2>&1
340336
}
337+
Install-Php -Version $version -Architecture $arch -ThreadSafe $ts -InstallVC -Path $php_dir -TimeZone UTC -InitialPhpIni Production -Force > $null 2>&1
341338
} else {
342339
if($env:update -eq 'true') {
343340
Update-Php $php_dir >$null 2>&1
@@ -358,5 +355,11 @@ if($version -lt "5.5") {
358355
} else {
359356
Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir
360357
}
358+
if($version -eq "master") {
359+
"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" }
360+
Rename-Item $ext_dir\php_oci8_12c.dll -NewName $ext_dir\php_oci8.dll
361+
Set-PhpIniKey -Key 'opcache.jit_buffer_size' -Value '256M' -Path $php_dir
362+
Set-PhpIniKey -Key 'opcache.jit' -Value '1235' -Path $php_dir
363+
}
361364
Update-PhpCAInfo -Path $php_dir -Source $cert_source
362365
Add-Log $tick "PHP" "$status PHP $($installed.FullVersion)"

0 commit comments

Comments
 (0)