Bug #18418: imagick_read() doesn't return success or failure
| From: | justin at vergeworks dot com | Date: | Thu, 18 Jul 2002 19:13:46 +0000 |
| Subject: | Bug #18418: imagick_read() doesn't return success or failure | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7776@lists.php.net to get a copy of this message | ||
From: justin@vergeworks.com
Operating system: Linux 2.4.9-34
PHP version: 4.2.1
PHP Bug Type: PEAR related
Bug description: imagick_read() doesn't return success or failure
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 bug report at http://bugs.php.net/?id=18418&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18418&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18418&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18418&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18418&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18418&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18418&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18418&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18418&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18418&r=globals