|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-11-30 13:20 UTC] hkh at netnords dot dk
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 /> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 21:00:01 2025 UTC |
Are you using the bundled gd library ("configure --with-gd" and not --with-gd=/path/to/gd). Cannot reproduce it with all branches and 4.3.8. --Pierre