ID:               30942
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hkh at netnords dot dk
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: win XP
 PHP Version:      4.3.8
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2004-11-30 13:20:51] 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 />


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30942&edit=1

Reply via email to