[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-cvs
Subject: Re: [PEAR-CVS] cvs: php4 /pear/Crypt CBC.php
From: ssb () fast ! no (Stig =?iso-8859-1?q?S=E6ther?= Bakken)
Date: 2001-04-23 20:36:32
[Download RAW message or body]
["Colin Viebrock" <colin@easydns.com>]
> if (!extension_loaded('mcrypt')) {
> - $this->error = new Crypt_CBC_Error('mcrypt module is not compiled into \
> PHP: compile PHP using --with-mcrypt.');
> - return $this->error;
> + return PEAR::raiseError('mcrypt module is not compiled into PHP', \
> null, + PEAR_ERROR_DIE, null, 'compile PHP using "--with-mcrypt"', \
> 'Crypt_CBC_Error', false ); }
Hi Colin,
Since you inherit PEAR, it is better to use $this->raiseError(). That
way the user can set default error handling in the Crypt_CBC object.
- Stig
--
Stig Sæther Bakken <ssb@fast.no>
Fast Search & Transfer ASA, Trondheim, Norway
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, e-mail: pear-cvs-unsubscribe@lists.php.net
For additional commands, e-mail: pear-cvs-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic