Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
When running Symfony console commands that utilize the APCu cache on Laragon with PHP 8.3.2 NTS, I encounter a startup warning stating that the APCu module cannot be initialized due to a mismatch between the module API and the PHP compiled API.
Steps to Reproduce
Install Laragon 6 with Apache httpd-2.4.54-win64-VS16.
Use PHP php-8.3.2-nts-Win32-vs16-x64.
Download and enable APCu from https://github.com/krakjoe/apcu/releases/tag/v5.1.23, specifically the apcu-8.3-x64-nts.zip version.
Run php bin/console app:migrate -u from the project directory.
Expected Behavior
APCu initializes without any warnings, and the Symfony console command executes as expected.
Current Behavior
The following warning is displayed, and APCu does not initialize correctly:
Warning: PHP Startup: apcu: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
Possible Solution
It seems that there is either an issue with the APCu build provided for PHP 8.3.2 NTS or a compatibility issue with Laragon's PHP setup. Ensuring that APCu is compiled against the same API version as the PHP version provided with Laragon might resolve the issue.
Environment
Laragon Full 6.0.0
Apache httpd-2.4.54-win64-VS16
PHP php-8.3.2-nts-Win32-vs16-x64
APCu v5.1.23 for PHP 8.3 NTS (64-bit)
Additional Information
Any guidance on resolving this mismatch or providing the correct APCu builds for Laragon's PHP would be greatly appreciated.
Description
When running Symfony console commands that utilize the APCu cache on Laragon with PHP 8.3.2 NTS, I encounter a startup warning stating that the APCu module cannot be initialized due to a mismatch between the module API and the PHP compiled API.
Steps to Reproduce
httpd-2.4.54-win64-VS16
.php-8.3.2-nts-Win32-vs16-x64
.https://github.com/krakjoe/apcu/releases/tag/v5.1.23
, specifically theapcu-8.3-x64-nts.zip
version.php bin/console app:migrate -u
from the project directory.Expected Behavior
APCu initializes without any warnings, and the Symfony console command executes as expected.
Current Behavior
The following warning is displayed, and APCu does not initialize correctly:
Warning: PHP Startup: apcu: Unable to initialize module Module compiled with module API=20230831 PHP compiled with module API=20220829 These options need to match in Unknown on line 0
Possible Solution
It seems that there is either an issue with the APCu build provided for PHP 8.3.2 NTS or a compatibility issue with Laragon's PHP setup. Ensuring that APCu is compiled against the same API version as the PHP version provided with Laragon might resolve the issue.
Environment
httpd-2.4.54-win64-VS16
php-8.3.2-nts-Win32-vs16-x64
v5.1.23
for PHP 8.3 NTS (64-bit)Additional Information
Any guidance on resolving this mismatch or providing the correct APCu builds for Laragon's PHP would be greatly appreciated.