Fatal error reported for recoverable error
| Bug #39780 | Fatal error reported for recoverable error | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-12-08 18:25 UTC | Modified: | 2006-12-10 01:41 UTC | ||
| From: | pz at mysqlperformanceblog dot com | Assigned: | pajoye (profile) | ||
| Status: | Closed | Package: | GD related | ||
| PHP Version: | 5.2.0 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2006-12-08 18:25 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-12-08 18:33 UTC] tony2001@php.net
[2006-12-08 20:02 UTC] iliaa@php.net
[2006-12-08 20:02 UTC] pajoye@php.net
[2006-12-08 20:17 UTC] pz at mysqlperformanceblog dot com
[2006-12-08 21:47 UTC] pajoye@php.net
[2006-12-09 09:59 UTC] pz at mysqlperformanceblog dot com
[2006-12-09 11:09 UTC] pajoye@php.net
[2006-12-09 11:59 UTC] pajoye@php.net
[2006-12-10 01:41 UTC] pajoye@php.net