reference/info/functions/phpversion.xml
4fd318ca791ef360c5b19a17c8045f7446aa9740
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>phpversion</methodname>
13
-
<methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>phpversion</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>extension</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Returns a string containing the version of the currently running PHP
...
...
@@ -37,13 +37,36 @@
37
37
<refsect1 role="returnvalues">
38
38
&reftitle.returnvalues;
39
39
<para>
40
-
If the optional <parameter>extension</parameter> parameter is
41
-
specified, <function>phpversion</function> returns the version of that
42
-
extension, or &false; if there is no version information associated or
43
-
the extension isn't enabled.
40
+
Returns the current PHP version as a <type>string</type>.
41
+
If a <type>string</type> argument is provided for
42
+
<parameter>extension</parameter> parameter, <function>phpversion</function>
43
+
returns the version of that extension, or &false; if there is no version
44
+
information associated or the extension isn't enabled.
44
45
</para>
45
46
</refsect1>
46
47

48
+
<refsect1 role="changelog">
49
+
&reftitle.changelog;
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.0.0</entry>
61
+
<entry>
62
+
<parameter>extension</parameter> is nullable now.
63
+
</entry>
64
+
</row>
65
+
</tbody>
66
+
</tgroup>
67
+
</informaltable>
68
+
</refsect1>
69
+

47
70
<refsect1 role="examples">
48
71
&reftitle.examples;
49
72
<para>
...
...
@@ -113,6 +136,12 @@ if (PHP_VERSION_ID < 50207) {
113
136
constants.
114
137
</para>
115
138
</note>
139
+
<note>
140
+
<para>
141
+
Some extensions may define their own version number.
142
+
However, most bundled extension will use the PHP version as their version number.
143
+
</para>
144
+
</note>
116
145
</refsect1>
117
146

118
147
<refsect1 role="seealso">
...
...
@@ -123,14 +152,12 @@ if (PHP_VERSION_ID < 50207) {
123
152
<member><function>version_compare</function></member>
124
153
<member><function>phpinfo</function></member>
125
154
<member><function>phpcredits</function></member>
126
-
<member><function>php_logo_guid</function></member>
127
155
<member><function>zend_version</function></member>
128
156
</simplelist>
129
157
</para>
130
158
</refsect1>
131
159

132
160
</refentry>
133
-

134
161
<!-- Keep this comment at the end of the file
135
162
Local variables:
136
163
mode: sgml
137
164