mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix repeated example documentation line and typo in example (fixes bug #41627)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237895 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2e205f4c7e
commit
908f20c480
1 changed files with 2 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/mcrypt.xml, last change in rev 1.7 -->
|
||||
<refentry id="function.mcrypt-module-open">
|
||||
<refnamediv>
|
||||
|
@ -63,7 +63,7 @@
|
|||
/* Open the cipher */
|
||||
$td = mcrypt_module_open('rijndael-256', '', 'ofb', '');
|
||||
|
||||
/* Create the IV and determine the keysize length, used MCRYPT_RAND
|
||||
/* Create the IV and determine the keysize length, use MCRYPT_RAND
|
||||
* on Windows instead */
|
||||
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
|
||||
$ks = mcrypt_enc_get_key_size($td);
|
||||
|
@ -97,13 +97,6 @@
|
|||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
The first line in the example above will try to open the DES cipher from
|
||||
the default directory and the EBC mode from the directory
|
||||
<filename>/usr/lib/mcrypt-modes</filename>. The second example uses
|
||||
strings as name for the cipher and mode, this only works when the
|
||||
extension is linked against libmcrypt 2.4.x or 2.5.x.
|
||||
</para>
|
||||
<para>
|
||||
See also
|
||||
<function>mcrypt_module_close</function>,
|
||||
|
|
Loading…
Reference in a new issue