Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php_uname() now throws ValueError (fixes #3968) #3969

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions reference/info/functions/php-uname.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,18 @@
information is returned:
<itemizedlist>
<listitem>
<simpara>
<literal>'a'</literal>: This is the default. Contains all modes in
the sequence <literal>"s n r v m"</literal>.
</simpara>
<para>
<literal>'a'</literal>: This is the default. Returns the same
information as the individual modes
<simplelist type="inline">
<member><literal>'s'</literal></member>
<member><literal>'n'</literal></member>
<member><literal>'r'</literal></member>
<member><literal>'v'</literal></member>
<member><literal>'m'</literal></member>
</simplelist>
separated by spaces.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording should probably be improved at one point.

</para>
</listitem>
<listitem>
<simpara>
Expand Down Expand Up @@ -89,6 +97,29 @@
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
Throws a <classname>ValueError</classname> when an invalid
<parameter>mode</parameter> is specified.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
Loading