#18418 [Opn->Csd]: imagick_read() doesn't return success or failure

From: Date: Wed, 28 Aug 2002 15:05:12 +0000
Subject: #18418 [Opn->Csd]: imagick_read() doesn't return success or failure
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8713@lists.php.net to get a copy of this message
ID: 18418 Updated by: pajoye@php.net Reported By: justin@vergeworks.com -Status: Open +Status: Closed Bug Type: PEAR related Operating System: Linux 2.4.9-34 PHP Version: 4.2.1 -Assigned To: +Assigned To: pajoye New Comment: 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. fixed in cvs yesterday. Previous Comments: ------------------------------------------------------------------------ [2002-07-18 15:13:45] justin@vergeworks.com The imagick_read() method of the imagick module doesn't return success or failure. For example: //this code will die on the read method as it should //because the photo doesn't exist $handle = imagick_create() or die ("Could not create handle"); imagick_read($handle, "DoesntExist.jpg") or die ("Could not read photo"); //this code will die on the read method even though //the photo exist and if no error check is done, subsequent //methods imagick methods on the photo would work $handle = imagick_create() or die ("Could not create handle"); imagick_read($handle, "GoodPhoto.jpg") or die ("Could not read photo"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18418&edit=1

« previous php.pear.dev (#8713) next »