Re: cvs: php4 /pear/Crypt CBC.php

From: Date: Mon, 23 Apr 2001 20:36:32 +0000
Subject: Re: cvs: php4 /pear/Crypt CBC.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-82@lists.php.net to get a copy of this message
["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

« previous php.pear.cvs (#82) next »