- use png_sig_cmp to support libpng 1.4, old is deprecated already in older version

This commit is contained in:
Pierre Joye 2010-01-10 02:13:45 +00:00
parent 81695689b9
commit 7aacc1ccbc
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -5,6 +5,7 @@ PHP NEWS
- Improved LCG entropy. (Rasmus, Samy Kamkar)
- Added libpng 1.4.0 support. (Pierre)
- Added support for DISABLE_AUTHENTICATOR for imap_open. (Pierre)
- Added missing host validation for HTTP urls inside FILTER_VALIDATE_URL.
(Ilia)

View File

@ -145,7 +145,7 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
return NULL;
}
if (!png_check_sig (sig, 8)) { /* bad signature */
if (png_sig_cmp(sig, 0, 8) != 0) { /* bad signature */
return NULL;
}