Merge branch 'PHP-8.1'

* PHP-8.1:
  Fixed libpng warning when loading interlaced images
This commit is contained in:
Christoph M. Becker 2022-02-08 10:48:58 +01:00
commit 0052af2a67
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6

View File

@ -336,6 +336,11 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
break;
}
/* enable the interlace transform if supported */
#ifdef PNG_READ_INTERLACING_SUPPORTED
(void)png_set_interlace_handling(png_ptr);
#endif
png_read_update_info(png_ptr, info_ptr);
/* allocate space for the PNG image data */