downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mcrypt_ofb> <mcrypt_module_open
Last updated: Fri, 06 Nov 2009

view this page in

mcrypt_module_self_test

(PHP 4 >= 4.0.2, PHP 5)

mcrypt_module_self_test指定したモジュールのセルフテストを実行する

説明

bool mcrypt_module_self_test ( string $algorithm [, string $lib_dir ] )

この関数は、指定したアルゴリズムのセルフテストを実行します。

パラメータ

algorithm

テストするアルゴリズム。

lib_dir

オプションのパラメータ lib_dir により、 システム上での algorithm モジュールの位置を指定することが可能です。

返り値

この関数は、セルフテストが成功した場合 TRUE、失敗した場合に FALSE を返します。

例1 mcrypt_module_self_test() の例

<?php
var_dump
(mcrypt_module_self_test(MCRYPT_RIJNDAEL_128)) . "\n";
var_dump(mcrypt_module_self_test(MCRYPT_BOGUS_CYPHER));
?>

上の例の出力は以下となります。

bool(true)
bool(false)



add a note add a note User Contributed Notes
mcrypt_module_self_test
There are no user contributed notes for this page.

mcrypt_ofb> <mcrypt_module_open
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites