Missing php_apcu.dll for PHP 8.2 / APCu 5.1.22?
Asked Answered
P

2

5

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?

Phthisis answered 9/1, 2023 at 15:25 Comment(2)
It is noted in this thread (github.com/krakjoe/apcu/issues/450) that you can allegedly download them from the CI artifacts, but I don't know the specifics of thatVentre
APCu dll file is not yet available. (Imagick either).Vitta
P
5

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...

Phthisis answered 9/1, 2023 at 16:22 Comment(1)
You can use github.com/krakjoe/apcu/releases/tag/v5.1.23Lake
W
2

For some reason, the official download page does not have the required Windows binaries for APCu 5.1.22 Stable, nor does the download folder exist.

The GitHub issue referenced in the currently accepted answer provided download links to the compiled binaries for some time, but they have since all expired. And as mentioned, they were for the 5.1.23-dev version anyway, not 5.1.22 Stable.

Therefore we decided to compile the Windows binaries for APCu 5.1.22 and the different PHP versions and architectures ourselves and make them available here: https://www.48design.com/en/news/2023/10/06/php_apcu-dll-5.1.22-windows-binaries-php-8.2/#download

Should the need arise, we might update this for upcoming versions of APCu.

Waynewayolle answered 6/10, 2023 at 10:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.