[imagick] Fatal error or Warning in imagick_readimage()
| From: | BUSTARRET, Jean-Francois | Date: | Thu, 01 Dec 2005 10:57:27 +0000 |
| Subject: | [imagick] Fatal error or Warning in imagick_readimage() | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-3307@lists.php.net to get a copy of this message | ||
When imagick is unable to read an image, it logs the following error :
PHP Fatal error: imagick_readimage(): after ReadImage(), image is empty in [...]
and returns null, which can be handled by the PHP code.
Should it be a warning and not an error ?
Solution : in imagick.c, replace :
php_error( E_ERROR, "%s(): after ReadImage(), image is empty",
with
php_error( E_WARNING, "%s(): after ReadImage(), image is empty",
Jean-François Bustarret
eTF1 - Responsable infrastructure et système
http://www.tf1.fr
-------------------------------------
Le present message (y compris tous les elements attaches) est confidentiel et est destine a ses
seuls destinataires. Si vous
l'avez recu par erreur, merci de l'indiquer a son expediteur par retour et de proceder a
sa destruction dans vos systemes.
Toute utilisation ou diffusion non autorisee de son contenu, en totalite ou en partie, est
strictement interdite. Les idees et
opinions presentees dans ce message sont celles de son auteur, et ne representent pas necessairement
celles de TF1 (et/ou des
entites membres du Groupe TF1).
This message (including any attachments) is confidential and may be privileged. If you have received
it by mistake please notify
the sender by return email and delete this message from your system. Any unauthorised use or
dissemination of this message in
whole or in part is strictly prohibited. Any views or opinions presented are solely those of its
author and do not necessarily
represent those of TF1 (and/or its group companies).