Files
doc-fr/reference/mcrypt/functions/mcrypt-module-self-test.xml
T
David Manusset 5b0ae792c3 typo
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@164871 c90b9560-bf6c-de11-be94-00142212c4b1
2004-08-01 14:41:42 +00:00

70 lines
1.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- EN-Revision: 1.4 Maintainer: didou Status: ready -->
<!-- Reviewed: yes -->
<refentry id="function.mcrypt-module-self-test">
<refnamediv>
<refname>mcrypt_module_self_test</refname>
<refpurpose>Teste un mode</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>mcrypt_module_self_test</methodname>
<methodparam><type>string</type><parameter>algorithm</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>lib_dir</parameter></methodparam>
</methodsynopsis>
<para>
<function>mcrypt_module_self_test</function> effectue un
test sur l'algorithme spécifié. Le paramètre optionnel
<parameter>lib_dir</parameter> contient le chemin jusqu'au module
de l'algorithme sur le système.
</para>
<para>
<function>mcrypt_module_self_test</function> retourne &true; si le test
fonctionne, et &false; sinon.
</para>
<para>
<example>
<title>Exemple avec <function>mcrypt_module_self_test</function></title>
<programlisting role="php">
<![CDATA[
<?php
var_dump(mcrypt_module_self_test(MCRYPT_RIJNDAEL_128));
var_dump(mcrypt_module_self_test(MCRYPT_BOGUS_CYPHER));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
bool(true)
bool(false)
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->