heroku / heroku-buildpack-php

Heroku's buildpack for PHP applications.

Home Page:https://devcenter.heroku.com/categories/php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GD issue when upgrading PHP 8.0.13 to 8.0.14

dragosprotung opened this issue · comments

After upgrading PHP 8.0.13 to 8.0.14 I started to see.

Warning: imagecreatefromstring(): gd-png: libpng warning: Interlace handling should be turned on when using png_read_image
Warning: imagecreatefromstring(): gd-png: libpng warning: cHRM: invalid chromaticities

I am not sure if this is related to https://bugs.php.net/bug.php?id=71316 or not

Similar issue with more info and reproduce images: dompdf/dompdf#2718

This mentions system libgd but we build the one bundled with PHP, so gotta investigate.

@dragosprotung if you downgrade to 8.0.13, the warnings do not appear?

@dzuelke downgrading to PHP 8.0.13 the warning disappears

Okay this is a change in 7.4.24/8.0.14/8.1.0, see php/php-src#7615 and the comments in there.

I suppose the way to do it now is @imagecreatefromstring() etc...

Closing, since we can't do anything about this here; feel free to add your thoughts to that PHP PR or the bug tracker.