3

I am trying to set up PHP 8.2 with APCu extension on Windows.

However, it seems that PHP 8.2 compatibility was only added to the latest APCu version 5.1.22 (released 2022-09-19), and the corresponding php_apcu.dll file is missing - I cannot find it at neither location:

When I try using the previous APCu version 5.1.21, I get the following error:

PHP Warning:  PHP Startup: apcu: Unable to initialize module
Module compiled with module API=20210902
PHP    compiled with module API=20220829
These options need to match

Should I downgrade my PHP installation to 8.1.x then?

Leszek Pachura
  • 403
  • 4
  • 18
  • 4
    It is noted in this thread (https://github.com/krakjoe/apcu/issues/450) that you can allegedly download them from the CI artifacts, but I don't know the specifics of that – Chris Haas Jan 09 '23 at 15:38
  • APCu dll file is not yet available. (Imagick either). – vee Jan 09 '23 at 16:04

1 Answers1

4

Thanks Chris Haas! Following your GitHub link, I was able to download apcu-8.2-x64-ts.zip file that contains php_apcu.dll compatible with PHP 8.2. Please note, however, that this is an artifact of APCu 5.1.23-dev, not the latest stable release 5.1.22...

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
Leszek Pachura
  • 403
  • 4
  • 18