Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 150... Zeile 150...
150
	 * @return	void
150
	 * @return	void
151
	 */
151
	 */
152
	public function __construct(array $params = array())
152
	public function __construct(array $params = array())
153
	{
153
	{
154
		$this->_drivers = array(
154
		$this->_drivers = array(
155
			'mcrypt' => defined('MCRYPT_DEV_URANDOM'),
155
			'mcrypt'  => defined('MCRYPT_DEV_URANDOM'),
156
			// While OpenSSL is available for PHP 5.3.0, an IV parameter
-
 
157
			// for the encrypt/decrypt functions is only available since 5.3.3
-
 
158
			'openssl' => (is_php('5.3.3') && extension_loaded('openssl'))
156
			'openssl' => extension_loaded('openssl')
159
		);
157
		);
Zeile 160... Zeile 158...
160
 
158
 
161
		if ( ! $this->_drivers['mcrypt'] && ! $this->_drivers['openssl'])
159
		if ( ! $this->_drivers['mcrypt'] && ! $this->_drivers['openssl'])
162
		{
160
		{
Zeile 907... Zeile 905...
907
 
905
 
908
	/**
906
	/**
909
	 * Byte-safe strlen()
907
	 * Byte-safe strlen()
910
	 *
908
	 *
911
	 * @param	string	$str
909
	 * @param	string	$str
912
	 * @return	integer
910
	 * @return	int
913
	 */
911
	 */
914
	protected static function strlen($str)
912
	protected static function strlen($str)
915
	{
913
	{
916
		return (self::$func_override)
914
		return (self::$func_override)