reference/mcrypt/functions/mcrypt-encrypt.xml
5fabd07880ab15b0ad2cf7eb055c7c2b36d7120f
...
...
@@ -7,13 +7,13 @@
7
7
</refnamediv>
8
8
9
9
<refsynopsisdiv>
10
-
&warn.deprecated.function-7-1-0;
10
+
&warn.deprecated.function-7-1-0.removed-7-2-0;
11
11
</refsynopsisdiv>
12
12
13
13
<refsect1 role="description">
14
14
&reftitle.description;
15
15
<methodsynopsis>
16
-
<type>string</type><methodname>mcrypt_encrypt</methodname>
16
+
<type class="union"><type>string</type><type>false</type></type><methodname>mcrypt_encrypt</methodname>
17
17
<methodparam><type>string</type><parameter>cipher</parameter></methodparam>
18
18
<methodparam><type>string</type><parameter>key</parameter></methodparam>
19
19
<methodparam><type>string</type><parameter>data</parameter></methodparam>
...
...
@@ -81,33 +81,6 @@
81
81
</para>
82
82
</refsect1>
83
83

84
-
<refsect1 role="changelog">
85
-
&reftitle.changelog;
86
-
<para>
87
-
<informaltable>
88
-
<tgroup cols="2">
89
-
<thead>
90
-
<row>
91
-
<entry>&Version;</entry>
92
-
<entry>&Description;</entry>
93
-
</row>
94
-
</thead>
95
-
<tbody>
96
-
<row>
97
-
<entry>5.6.0</entry>
98
-
<entry>
99
-
Invalid <parameter>key</parameter> and <parameter>iv</parameter> sizes
100
-
are no longer accepted. <function>mcrypt_encrypt</function> will now throw
101
-
a warning and return &false; if the inputs are invalid. Previously keys and
102
-
IVs were padded with '<literal>\0</literal>' bytes to the next valid size.
103
-
</entry>
104
-
</row>
105
-
</tbody>
106
-
</tgroup>
107
-
</informaltable>
108
-
</para>
109
-
</refsect1>
110
-

111
84
<refsect1 role="examples">
112
85
&reftitle.examples;
113
86
<para>
114
87