reference/hash/functions/hash-final.xml
20dcfbb0dd7150cbe5dfd7903a3001229295c549
...
...
@@ -9,8 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>string</type><methodname>hash_final</methodname>
12
-
<methodparam><type>resource</type><parameter>context</parameter></methodparam>
13
-
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>false</initializer></methodparam>
12
+
<methodparam><type>HashContext</type><parameter>context</parameter></methodparam>
13
+
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
14
14
</methodsynopsis>
15
15

16
16
</refsect1>
...
...
@@ -27,7 +27,7 @@
27
27
</listitem>
28
28
</varlistentry>
29
29
<varlistentry>
30
-
<term><parameter>raw_output</parameter></term>
30
+
<term><parameter>binary</parameter></term>
31
31
<listitem>
32
32
<para>
33
33
When set to &true;, outputs raw binary data.
...
...
@@ -43,32 +43,32 @@
43
43
&reftitle.returnvalues;
44
44
<para>
45
45
Returns a string containing the calculated message digest as lowercase hexits
46
-
unless <parameter>raw_output</parameter> is set to true in which case the raw
46
+
unless <parameter>binary</parameter> is set to true in which case the raw
47
47
binary representation of the message digest is returned.
48
48
</para>
49
49
</refsect1>
50
50

51
-
<refsect1 role="examples">
52
-
&reftitle.examples;
51
+
<refsect1 role="changelog">
52
+
&reftitle.changelog;
53
53
<para>
54
-
<example>
55
-
<title><function>hash_final</function> example</title>
56
-
<programlisting role="php">
57
-
<![CDATA[
58
-
<?php
59
-
$ctx = hash_init('sha1');
60
-
hash_update($ctx, 'The quick brown fox jumped over the lazy dog.');
61
-
echo hash_final($ctx);
62
-
?>
63
-
]]>
64
-
</programlisting>
65
-
&example.outputs;
66
-
<screen>
67
-
<![CDATA[
68
-
c0854fb9fb03c41cce3802cb0d220529e6eef94e
69
-
]]>
70
-
</screen>
71
-
</example>
54
+
<informaltable>
55
+
<tgroup cols="2">
56
+
<thead>
57
+
<row>
58
+
<entry>&Version;</entry>
59
+
<entry>&Description;</entry>
60
+
</row>
61
+
</thead>
62
+
<tbody>
63
+
<row>
64
+
<entry>7.2.0</entry>
65
+
<entry>
66
+
Accept <classname>HashContext</classname> instead of resource.
67
+
</entry>
68
+
</row>
69
+
</tbody>
70
+
</tgroup>
71
+
</informaltable>
72
72
</para>
73
73
</refsect1>
74
74

...
...
@@ -85,7 +85,6 @@ c0854fb9fb03c41cce3802cb0d220529e6eef94e
85
85
</refsect1>
86
86

87
87
</refentry>
88
-

89
88
<!-- Keep this comment at the end of the file
90
89
Local variables:
91
90
mode: sgml
92
91