?
avatar mbabker
mbabker
29 Jan 2017

The cache and session APIs have an adapter to use WinCache which is only available on a Windows environment. Now that the repository tests there, we can run install this dependency to run the tests for these adapters.

WinCache setup instructions may be found at http://php.net/manual/en/wincache.installation.php

avatar mbabker mbabker - open - 29 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Jan 2017
avatar photodude
photodude - comment - 30 Jan 2017

If we desire to, I think we could add memcache, APCU, and redis as follows

    - ps: >-
        If ($env:php_ver_target -eq "5.6") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/apcu/4.0.8/php_apcu-4.0.8-5.6-nts-vc11-x86.zip
            7z x php_apcu-4.0.8-5.6-nts-vc11-x86.zip > $null
            copy php_apcu.dll ext\php_apcu.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - ps: >-
        If ($env:php_ver_target -eq "7.0") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/apcu/5.1.8/php_apcu-5.1.8-7.0-nts-vc14-x64.zip
            7z x php_apcu-5.1.8-7.0-nts-vc14-x64.zip > $null
            copy php_apcu.dll ext\php_apcu.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - ps: >-
        If ($env:php_ver_target -eq "7.1") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/apcu/5.1.8/php_apcu-5.1.8-7.1-nts-vc14-x64.zip
            7z x php_apcu-5.1.8-7.1-nts-vc14-x64.zip > $null
            copy php_apcu.dll ext\php_apcu.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - echo extension=php_apcu.dll >> php.ini
    - echo apc.enable_cli=1 >> php.ini
    - ps: >-
        If ($env:php_ver_target -eq "5.6") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/php_memcache-3.0.8-5.6-ts-vc11-x86.zip
            7z x php_memcache-3.0.8-5.6-ts-vc11-x86.zip -y  > $null
            copy php_memcache.dll ext\php_memcache.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - echo extension=php_memcache.dll >> php.ini

    - IF %PHP_VER_TARGET%==5.6 IF %PHP%==1 cinst -y redis
    - IF %PHP_VER_TARGET%>=7.0 IF %PHP%==1 cinst -y redis-64
    - echo extension=php_redis.dll >> php.ini

    - echo extension=php_curl.dll >> php.ini

wincache
https://www.iis.net/downloads/microsoft/wincache-extension
WinCache 1.3 for PHP 5.3-5.6
WinCache 2.0 for PHP 7.0
WinCache 2.0 for PHP 7.1

    - ps: >-
        If ($env:php_ver_target -eq "5.6") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/wincache/1.3.7.12/php_wincache-1.3.7.12-5.6-nts-vc11-x86.zip
            7z x php_wincache-1.3.7.12-5.6-nts-vc11-x86.zip > $null
            copy php_wincache.dll ext\php_wincache.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - ps: >-
        If ($env:php_ver_target -eq "7.0") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/wincache/2.0.0.8/php_wincache-2.0.0.8-7.0-nts-vc14-x64.zip
            7z x php_wincache-2.0.0.8-7.0-nts-vc14-x64.zip > $null
            copy php_wincache.dll ext\php_wincache.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - ps: >-
        If ($env:php_ver_target -eq "7.1") {
          If ($env:PHP -eq "1") {
            appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/wincache/2.0.0.8/php_wincache-2.0.0.8-7.1-nts-vc14-x64.zip
            7z x php_wincache-2.0.0.8-7.1-nts-vc14-x64.zip > $null
            copy php_wincache.dll ext\php_wincache.dll
            Remove-Item C:\tools\php\* -include .zip}}
    - echo extension=php_wincache.dll >> php.ini
    - echo zend_extension=php_opcache.dll >> php.ini
    - echo opcache.enable_cli=1 >> php.ini
avatar mbabker mbabker - change - 7 Mar 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-03-07 21:38:23
Closed_By mbabker
avatar mbabker mbabker - close - 7 Mar 2017

Add a Comment

Login with GitHub to post a comment