reference/mhash/functions/mhash-get-hash-name.xml
8a2141dcc084f72feb4e0ae2feaff3b440e5c59e
...
...
@@ -3,17 +3,21 @@
3
3
<refentry xml:id="function.mhash-get-hash-name" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>mhash_get_hash_name</refname>
6
-
<refpurpose>Get the name of the specified hash</refpurpose>
6
+
<refpurpose>Gets the name of the specified hash</refpurpose>
7
7
</refnamediv>
8
8

9
+
<refsynopsisdiv>
10
+
&warn.deprecated.function-8-1-0;
11
+
</refsynopsisdiv>
12
+
9
13
<refsect1 role="description">
10
14
&reftitle.description;
11
15
<methodsynopsis>
12
-
<type>string</type><methodname>mhash_get_hash_name</methodname>
13
-
<methodparam><type>int</type><parameter>hash</parameter></methodparam>
16
+
<type class="union"><type>string</type><type>false</type></type><methodname>mhash_get_hash_name</methodname>
17
+
<methodparam><type>int</type><parameter>algo</parameter></methodparam>
14
18
</methodsynopsis>
15
19
<para>
16
-
Gets the name of the specified <parameter>hash</parameter>.
20
+
Gets the name of the specified <parameter>algo</parameter>.
17
21
</para>
18
22
</refsect1>
19
23

...
...
@@ -22,10 +26,10 @@
22
26
<para>
23
27
<variablelist>
24
28
<varlistentry>
25
-
<term><parameter>hash</parameter></term>
29
+
<term><parameter>algo</parameter></term>
26
30
<listitem>
27
31
<para>
28
-
The hash id. One of the <literal>MHASH_XXX</literal> constants.
32
+
The hash ID. One of the <constant>MHASH_hashname</constant> constants.
29
33
</para>
30
34
</listitem>
31
35
</varlistentry>
...
...
@@ -40,11 +44,36 @@
40
44
</para>
41
45
</refsect1>
42
46

47
+
<refsect1 role="changelog">
48
+
&reftitle.changelog;
49
+
<para>
50
+
<informaltable>
51
+
<tgroup cols="2">
52
+
<thead>
53
+
<row>
54
+
<entry>&Version;</entry>
55
+
<entry>&Description;</entry>
56
+
</row>
57
+
</thead>
58
+
<tbody>
59
+
<row>
60
+
<entry>8.1.0</entry>
61
+
<entry>
62
+
This function has been deprecated.
63
+
Use the <link linkend="ref.hash"><literal>hash_*()</literal> functions</link> instead.
64
+
</entry>
65
+
</row>
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
69
+
</para>
70
+
</refsect1>
71
+

43
72
<refsect1 role="examples">
44
73
&reftitle.examples;
45
74
<para>
46
75
<example>
47
-
<title><function>mhash_get_hash_name</function> example</title>
76
+
<title><function>mhash_get_hash_name</function> Example</title>
48
77
<programlisting role="php">
49
78
<![CDATA[
50
79
<?php
...
...
@@ -58,7 +87,6 @@ echo mhash_get_hash_name(MHASH_MD5); // MD5
58
87
</para>
59
88
</refsect1>
60
89
</refentry>
61
-

62
90
<!-- Keep this comment at the end of the file
63
91
Local variables:
64
92
mode: sgml
65
93