[doc-en] master: Fix typos and grammars in language-snippets.ent (#5905)
| From: | Chun-Sheng, Li via GitHub | Date: | Fri, 02 Oct 2026 19:07:56 +0000 |
| Subject: | [doc-en] master: Fix typos and grammars in language-snippets.ent (#5905) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23805@lists.php.net to get a copy of this message | ||
Author: Chun-Sheng, Li (peter279k)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2026-10-02T20:07:53+01:00
Commit: https://github.com/php/doc-en/commit/7b7d43fd339458a3f9491ca9a5c189a9622a3a24
Raw diff: https://github.com/php/doc-en/commit/7b7d43fd339458a3f9491ca9a5c189a9622a3a24.diff
Fix typos and grammars in language-snippets.ent (#5905)
Changed paths:
M language-snippets.ent
Diff:
diff --git a/language-snippets.ent b/language-snippets.ent
index 81a205b8f759..a721f1edb553 100644
--- a/language-snippets.ent
+++ b/language-snippets.ent
@@ -754,7 +754,7 @@ such as
<function>imagecreatetruecolor</function>.</simpara></listitem></varlist
<!ENTITY gd.font.description '<varlistentry xmlns="http://docbook.org/ns/docbook"><term>
<parameter>font</parameter></term><listitem><simpara>Can be 1, 2, 3,
4, 5 for built-in
-fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or
<classname>GdFont</classname> instance,
+fonts in latin2 encoding (where higher numbers correspond to larger fonts) or
<classname>GdFont</classname> instance,
returned by
<function>imageloadfont</function>.</simpara></listitem></varlistentry>'>
<!ENTITY gd.changelog.gdfont-instance '<row xmlns="http://docbook.org/ns/docbook">
@@ -1413,7 +1413,7 @@ Furthermore, these timezones may be removed from the IANA timezone database at
a
</simpara>'>
<!ENTITY date.timezone.errors.description '<simpara xmlns="http://docbook.org/ns/docbook">
-Every call to a date/time function will generate a <constant>E_WARNING</constant>
+Every call to a date/time function will generate an <constant>E_WARNING</constant>
if the time zone is not valid. See also
<function>date_default_timezone_set</function></simpara>'>
<!ENTITY date.timestamp.description '
@@ -1861,7 +1861,7 @@ PHP 5.3 (PECL OCI8 1.3.4) introduced the
<constant>OCI_CRED_EXT</constant> mode value. This tells Oracle to use
External or OS authentication, which must be configured in the
database. The <constant>OCI_CRED_EXT</constant> flag can only be used
-with username of "/" and a empty password.
+with username of "/" and an empty password.
<link linkend="ini.oci8.privileged-connect">oci8.privileged_connect</link>
may be <literal>On</literal> or <literal>Off</literal>.
</simpara>
@@ -2125,7 +2125,7 @@ Net-SNMP library.</simpara>'>
support for this extension. You do not need to load any additional
extensions in order to use these functions.</simpara>'>
-<!-- These are here as helpers for manual consistency and brievety-->
+<!-- These are here as helpers for manual consistency and brevity-->
<!ENTITY sqlsafemode '<link xmlns="http://docbook.org/ns/docbook"
linkend="ini.sql.safe-mode">SQL safe mode</link>'>
@@ -2634,7 +2634,7 @@ to be references, then they must be references in the passed argument
list.'>
</simpara>
'>
<!ENTITY snmp.set.type.values.equal.note '<simpara xmlns="http://docbook.org/ns/docbook">
- If the MIB-Files are loaded by into the MIB Tree with "snmp_read_mib" or by specifying
it in the libsnmp config, '=' may be used as
+ If the MIB-Files are loaded into the MIB Tree with "snmp_read_mib" or by specifying it
in the libsnmp config, '=' may be used as
the <parameter>type</parameter> parameter for all object ids as the type can then be
automatically read from the MIB.
</simpara>
'>
@@ -3816,7 +3816,7 @@ local: {
<entry><literal>+</literal></entry>
<entry>
Prefix positive numbers with a plus sign
- <literal>+</literal>; Default only negative
+ <literal>+</literal>. By default only negative numbers
are prefixed with a negative sign.
</entry>
</row>
@@ -3927,7 +3927,7 @@ local: {
<entry><literal>c</literal></entry>
<entry>
The argument is treated as an integer and presented
- as the character with that ASCII.
+ as the character with that ASCII value.
</entry>
</row>
<row>
@@ -4054,7 +4054,7 @@ local: {
</warning>
<para>
- Variables will be co-erced to a suitable type for the specifier:
+ Variables will be coerced to a suitable type for the specifier:
<table>
<title>Type Handling</title>
<tgroup cols="2">
@@ -4205,29 +4205,29 @@ local: {
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ValueError</classname> if the number of arguments is zero;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws a <exceptionname>ValueError</exceptionname> if the number of arguments is
zero;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ValueError</classname> if
<literal>[width]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws a <exceptionname>ValueError</exceptionname> if
<literal>[width]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ValueError</classname> if
<literal>[precision]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws a <exceptionname>ValueError</exceptionname> if
<literal>[precision]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ArgumentCountError</classname> when less arguments are given
than required;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws an <exceptionname>ArgumentCountError</exceptionname> when fewer arguments
are given than required;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
</tbody>
@@ -4261,29 +4261,29 @@ local: {
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ValueError</classname> if the number of arguments is zero;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws a <exceptionname>ValueError</exceptionname> if the number of arguments is
zero;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ValueError</classname> if
<literal>[width]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws a <exceptionname>ValueError</exceptionname> if
<literal>[width]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Throw a <classname>ValueError</classname> if
<literal>[precision]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
- Throw a <classname>ValueError</classname> when less arguments are given than
required;
- previously this function emitted a <constant>E_WARNING</constant> instead.
+ Throws a <exceptionname>ValueError</exceptionname> when fewer arguments are
given than required;
+ previously this function emitted an <constant>E_WARNING</constant> instead.
</entry>
</row>
</tbody>
@@ -4294,38 +4294,38 @@ local: {
<!ENTITY strings.errors.sprintf '
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if the number of
arguments is zero.
- Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
+ Prior to PHP 8.0.0, an <constant>E_WARNING</constant> was emitted instead.
</simpara>
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if
<literal>[width]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>.
- Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
+ Prior to PHP 8.0.0, an <constant>E_WARNING</constant> was emitted instead.
</simpara>
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if
<literal>[precision]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>.
- Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
+ Prior to PHP 8.0.0, an <constant>E_WARNING</constant> was emitted instead.
</simpara>
<simpara xmlns="http://docbook.org/ns/docbook">
- As of PHP 8.0.0, a <classname>ArgumentCountError</classname> is thrown when less
arguments are given than required.
- Prior to PHP 8.0.0, &false; was returned and a <constant>E_WARNING</constant>
emitted instead.
+ As of PHP 8.0.0, an <classname>ArgumentCountError</classname> is thrown when less
arguments are given than required.
+ Prior to PHP 8.0.0, &false; was returned and an <constant>E_WARNING</constant>
emitted instead.
</simpara>
'>
<!ENTITY strings.errors.vsprintf '
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if the number of
arguments is zero.
- Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
+ Prior to PHP 8.0.0, an <constant>E_WARNING</constant> was emitted instead.
</simpara>
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if
<literal>[width]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>.
- Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
+ Prior to PHP 8.0.0, an <constant>E_WARNING</constant> was emitted instead.
</simpara>
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown if
<literal>[precision]</literal> is less than zero or bigger than
<constant>PHP_INT_MAX</constant>.
- Prior to PHP 8.0.0, a <constant>E_WARNING</constant> was emitted instead.
+ Prior to PHP 8.0.0, an <constant>E_WARNING</constant> was emitted instead.
</simpara>
<simpara xmlns="http://docbook.org/ns/docbook">
As of PHP 8.0.0, a <classname>ValueError</classname> is thrown when less arguments
are given than required.
- Prior to PHP 8.0.0, &false; was returned and a <constant>E_WARNING</constant>
emitted instead.
+ Prior to PHP 8.0.0, &false; was returned and an <constant>E_WARNING</constant>
emitted instead.
</simpara>
'>