reference/info/functions/version-compare.xml
4e6f0774f03131cbeeb8c21019a690bf97fd22b6
...
...
@@ -9,10 +9,10 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>mixed</type><methodname>version_compare</methodname>
12
+
<type class="union"><type>int</type><type>bool</type></type><methodname>version_compare</methodname>
13
13
<methodparam><type>string</type><parameter>version1</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>version2</parameter></methodparam>
15
-
<methodparam choice="opt"><type>string</type><parameter>operator</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>operator</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
<function>version_compare</function> compares two "PHP-standardized"
...
...
@@ -60,8 +60,7 @@
60
60
<term><parameter>operator</parameter></term>
61
61
<listitem>
62
62
<para>
63
-
If the third optional <parameter>operator</parameter> argument is
64
-
specified, test for a particular relationship. The possible operators
63
+
An optional operator. The possible operators
65
64
are: <literal>&lt;</literal>, <literal>lt</literal>,
66
65
<literal>&lt;=</literal>, <literal>le</literal>, <literal>&gt;</literal>,
67
66
<literal>gt</literal>, <literal>&gt;=</literal>, <literal>ge</literal>,
...
...
@@ -164,7 +163,6 @@ if (version_compare(PHP_VERSION, '5.0.0', '<')) {
164
163
</refsect1>
165
164

166
165
</refentry>
167
-

168
166
<!-- Keep this comment at the end of the file
169
167
Local variables:
170
168
mode: sgml
171
169