reference/strings/functions/md5-file.xml
e095023e408c8cb6378ae16bb6870343a3946919
...
...
@@ -9,9 +9,9 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>md5_file</methodname>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>md5_file</methodname>
13
13
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
14
-
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Calculates the MD5 hash of the file specified by the
...
...
@@ -35,7 +35,7 @@
35
35
</listitem>
36
36
</varlistentry>
37
37
<varlistentry>
38
-
<term><parameter>raw_output</parameter></term>
38
+
<term><parameter>binary</parameter></term>
39
39
<listitem>
40
40
<para>
41
41
When &true;, returns the digest in raw binary format with a length of
...
...
@@ -54,31 +54,6 @@
54
54
</para>
55
55
</refsect1>
56
56

57
-
<refsect1 role="changelog">
58
-
&reftitle.changelog;
59
-
<para>
60
-
<informaltable>
61
-
<tgroup cols="2">
62
-
<thead>
63
-
<row>
64
-
<entry>&Version;</entry>
65
-
<entry>&Description;</entry>
66
-
</row>
67
-
</thead>
68
-
<tbody>
69
-
<row>
70
-
<entry>5.1.0</entry>
71
-
<entry>
72
-
Changed the function to use the streams API. It means that you can use
73
-
it with wrappers, like <literal>md5_file('http://example.com/..')</literal>
74
-
</entry>
75
-
</row>
76
-
</tbody>
77
-
</tgroup>
78
-
</informaltable>
79
-
</para>
80
-
</refsect1>
81
-

82
57
<refsect1 role="examples">
83
58
&reftitle.examples;
84
59
<para>
...
...
@@ -108,7 +83,6 @@ echo 'MD5 file hash of ' . $file . ': ' . md5_file($file);
108
83
</para>
109
84
</refsect1>
110
85
</refentry>
111
-

112
86
<!-- Keep this comment at the end of the file
113
87
Local variables:
114
88
mode: sgml
115
89