#39780 [Fbk]: Fatal error reported for recoverable error
| From: | pajoye@php.net | Date: | Fri, 08 Dec 2006 20:02:35 +0000 |
| Subject: | #39780 [Fbk]: Fatal error reported for recoverable error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106113@lists.php.net to get a copy of this message | ||
ID: 39780
Updated by: pajoye@php.net
Reported By: pz at mysqlperformanceblog dot com
Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 5.2.0
Assigned To: pajoye
New Comment:
Please provide a working link to the image.
Previous Comments:
------------------------------------------------------------------------
[2006-12-08 20:02:21] iliaa@php.net
You really should be using the imagecreatefromgif() function
in this instance. The URL with an image seems to be down, can
you provide a working URL for the file please.
------------------------------------------------------------------------
[2006-12-08 18:33:46] tony2001@php.net
Pierre, is E_ERROR really required in this case?
------------------------------------------------------------------------
[2006-12-08 18:25:56] pz at mysqlperformanceblog dot com
Description:
------------
Getting the following error:
PHP Fatal error: imagecreatefromstring(): gd-png: fatal libpng error:
IDAT: CRC error in
Note this is FATAL error for what should have been simply false result
code from the function.
Reproduce code:
---------------
imagecreatefromstring(file_get_contents("http://www.bennygold.com/uploaded_images/crack_line1-793571.gif"));
Expected result:
----------------
FALSE returned from the function with warning printed
Actual result:
--------------
Script is terminated with fatal error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39780&edit=1