Bug #71316 [NEW]: libpng warning from imagecreatefromstring
From: humbads at alum dot mit dot edu
Operating system: FreeBSD 10.2
PHP version: 5.6.17
Package: GD related
Bug Type: Bug
Bug description:libpng warning from imagecreatefromstring
Description:
------------
imagecreatefromstring is writing a warning message to stderr that can
not be suppressed by '@' or captured by the error handler. It should
emit a proper PHP warning instead.
I have the following version of libPNG:
php -i | grep -i libpng
libPNG Version => 1.6.19+apng
To run the test script, download the sample PNG image from here:
http://imgbox.com/BzOXLiOr
Note: libPNG 1.5.18 on PHP 5.6.17 for Windows does not have this
problem.
Test script:
---------------
php -r
'@var_dump(imagecreatefromstring(file_get_contents("1CCHOHSULGF78KW.png")));'
Expected result:
----------------
resource(6) of type (gd)
Actual result:
--------------
libpng warning: iCCP: known incorrect sRGB profile
resource(6) of type (gd)
--
Edit bug report at https://bugs.php.net/bug.php?id=71316&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71316&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71316&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71316&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71316&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71316&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71316&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71316&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71316&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71316&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71316&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71316&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71316&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71316&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71316&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71316&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71316&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71316&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71316&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71316&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71316&r=mysqlcfg
Thread (16 messages)
- humbads at alum dot mit dot edu
- humbads at alum dot mit dot eduBug #71316 [Opn]: libpng warning from imagecreatefromstring
- pajoye@php.netBug #71316 [Opn]: libpng warning from imagecreatefromstring
- michael dot hartmann at refx dot comBug #71316 [Com]: libpng warning from imagecreatefromstring
- cmb@php.netBug #71316 [Asn]: libpng warning from imagecreatefromstring
- kalle@php.netBug #71316 [Asn->Opn]: libpng warning from imagecreatefromstring
- divinity76+spam at gmail dot comBug #71316 [Com]: libpng warning from imagecreatefromstring
- divinity76 at gmail dot comBug #71316 [Com]: libpng warning from imagecreatefromstring
- bugreports2 at gmail dot comBug #71316 [Com]: libpng warning from imagecreatefromstring
- humbads at alum dot mit dot eduBug #71316 [Com]: libpng warning from imagecreatefromstring
- rtrtrtrtrt at dfdfdfdf dot dfdBug #71316 [Com]: libpng warning from imagecreatefromstring
- cmb@php.netBug #71316 [Opn]: libpng warning from imagecreatefromstring
- 2598059791 at qq dot comBug #71316 [Com]: libpng warning from imagecreatefromstring
- cmb@php.netBug #71316 [Opn]: libpng warning from imagecreatefromstring
- cmb@php.netBug #71316 [PATCH]: libpng warning from imagecreatefromstring
- git@php.netBug #71316 [Asn->Csd]: libpng warning from imagecreatefromstring