cvs: php4 /pear/Crypt CBC.php

From: Date: Mon, 23 Apr 2001 20:51:56 +0000
Subject: cvs: php4 /pear/Crypt CBC.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-84@lists.php.net to get a copy of this message
cmv Mon Apr 23 13:51:56 2001 EDT Modified files: /php4/pear/Crypt CBC.php Log: use $this->raiseError instead ... thanks Stig Index: php4/pear/Crypt/CBC.php diff -u php4/pear/Crypt/CBC.php:1.7 php4/pear/Crypt/CBC.php:1.8 --- php4/pear/Crypt/CBC.php:1.7 Mon Apr 23 13:23:59 2001 +++ php4/pear/Crypt/CBC.php Mon Apr 23 13:51:55 2001 @@ -36,7 +36,7 @@ * the author of libcrypt decides to name things internally. * * -* @version $Id: CBC.php,v 1.7 2001/04/23 20:23:59 cmv Exp $ +* @version $Id: CBC.php,v 1.8 2001/04/23 20:51:55 cmv Exp $ * @author Colin Viebrock <colin@easydns.com> * @author Mike Glover <mpg4@duluoz.net> * @@ -93,7 +93,7 @@ { if (!extension_loaded('mcrypt')) { - return PEAR::raiseError('mcrypt module is not compiled into PHP', null, + return $this->raiseError('mcrypt module is not compiled into PHP', null, PEAR_ERROR_DIE, null, 'compile PHP using "--with-mcrypt"', 'Crypt_CBC_Error', false ); } @@ -108,7 +108,7 @@ /* check for key */ if (!$key) { - return PEAR::raiseError('no key specified', null, + return $this->raiseError('no key specified', null, PEAR_ERROR_PRINT, null, null, 'Crypt_CBC_Error', false ); } @@ -116,7 +116,7 @@ $cipher = strtoupper($cipher); if (!isset($this->known_ciphers[$cipher])) { - return PEAR::raiseError('unknown cipher "'.$cipher.'"', null, + return $this->raiseError('unknown cipher "'.$cipher.'"', null, PEAR_ERROR_PRINT, null, null, 'Crypt_CBC_Error', false ); } @@ -222,7 +222,7 @@ $header = substr($crypt, 0, $iv_offset); $iv = substr ($crypt, $iv_offset, $this->blocksize); if ( $header != $this->header_spec ) { - return PEAR::raiseError('no initialization vector', null, + return $this->raiseError('no initialization vector', null, PEAR_ERROR_PRINT, null, null, 'Crypt_CBC_Error', false ); }

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