Hi,
I am getting a very obscure error with laminas captcha after upgrading to PHP 7.4.
The issue only occurs on the production server.
The Laminas captcha library doesn’t produce a valid png image and I see these errors in the logs:
PHP Warning: imagepng(): gd-png: fatal libpng error: zlib failed to initialize compressor – stream error in /vendor/laminas/laminas-captcha/src/Image.php on line 613
PHP Warning: imagepng(): gd-png error: setjmp returns error condition in vendor/laminas/laminas-captcha/src/Image.php on line 613
Has anyone ever seen this before or know where I should even start to troubleshoot?