From: hkh at netnords dot dk Operating system: win XP PHP version: 4.3.8 PHP Bug Type: GD related Bug description: imageCreateFromPng() gives fatal error
Description: ------------ Sometimes when calling imageCreateFromPng() it produces a fatal error instead of returning an empty string. Reproduce code: --------------- /* * The code are placed inside this function * &getImage($IfilePathName) */ return imageCreateFromPng($IfilePathName); Expected result: ---------------- An empty string. After the documentation the function should return a resource on succes, and on error an empty string. Actual result: -------------- <b>Fatal error</b>: imagecreatefrompng(): gd-png: fatal libpng error: Invalid chunk length. in <b> C:\Documents and Settings\hkh\Desktop\php\desktop\bmpNoget.inc.php</b> on line <b>98</b><br /> -- Edit bug report at http://bugs.php.net/?id=30942&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30942&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30942&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30942&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30942&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30942&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30942&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30942&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30942&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30942&r=support Expected behavior: http://bugs.php.net/fix.php?id=30942&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30942&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30942&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30942&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30942&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30942&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30942&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30942&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30942&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30942&r=mysqlcfg