Skip to content

Commit 03db488

Browse files
authored
php_uname() now throws ValueError (#3969)
* `php_uname()` now throws `ValueError` * Be even more explicit about what 'a' means
1 parent 73007ad commit 03db488

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

reference/info/functions/php-uname.xml

+35-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,18 @@
4040
information is returned:
4141
<itemizedlist>
4242
<listitem>
43-
<simpara>
44-
<literal>'a'</literal>: This is the default. Contains all modes in
45-
the sequence <literal>"s n r v m"</literal>.
46-
</simpara>
43+
<para>
44+
<literal>'a'</literal>: This is the default. Returns the same
45+
information as the individual modes
46+
<simplelist type="inline">
47+
<member><literal>'s'</literal></member>
48+
<member><literal>'n'</literal></member>
49+
<member><literal>'r'</literal></member>
50+
<member><literal>'v'</literal></member>
51+
<member><literal>'m'</literal></member>
52+
</simplelist>
53+
separated by spaces.
54+
</para>
4755
</listitem>
4856
<listitem>
4957
<simpara>
@@ -89,6 +97,29 @@
8997
</para>
9098
</refsect1>
9199

100+
<refsect1 role="changelog">
101+
&reftitle.changelog;
102+
<informaltable>
103+
<tgroup cols="2">
104+
<thead>
105+
<row>
106+
<entry>&Version;</entry>
107+
<entry>&Description;</entry>
108+
</row>
109+
</thead>
110+
<tbody>
111+
<row>
112+
<entry>8.4.0</entry>
113+
<entry>
114+
Throws a <classname>ValueError</classname> when an invalid
115+
<parameter>mode</parameter> is specified.
116+
</entry>
117+
</row>
118+
</tbody>
119+
</tgroup>
120+
</informaltable>
121+
</refsect1>
122+
92123
<refsect1 role="examples">
93124
&reftitle.examples;
94125
<para>

0 commit comments

Comments
 (0)