php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56010 imagick_readimage exits with error on warnings
Submitted: 2004-03-22 04:43 UTC Modified: 2004-04-01 02:32 UTC
From: michael at elfimov dot com Assigned: chregu (profile)
Status: Closed Package: imagick (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael at elfimov dot com
New email:
PHP Version: OS:

 

 [2004-03-22 04:43 UTC] michael at elfimov dot com
Description:
------------
When open TIFF images created with Adobe Photoshop there are some warnings reported by ImageMagick library (such as "unknown tag"). When file opened with ImageMagick libraries (convert etc) program execution continues as normal, but when PHP function imagick_readimage is called on these TIFF image then error reported and null handle returned. It's no good.
My solution is simple comment out source code in imagick.c (line 5534):

        if ( _php_imagick_is_error( handle ) )
        {
                _php_imagick_clean_up_handle( handle ) ;
                return NULL ;
        }

Will be very pleasant if you can do such thing in your package because of my depression patching every new version of PHP.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-01 02:32 UTC] chregu@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC