Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion language/control-structures/include.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ include 'http://www.example.com/file.php?foo=1&bar=2';
</para>
<simpara>
Handling Returns: <literal>include</literal> returns
<literal>FALSE</literal> on failure and raises a warning. Successful
&false; on failure and raises a warning. Successful
includes, unless overridden by the included file, return
<literal>1</literal>. It is possible to execute a <function>return</function>
statement inside an included file in order to terminate processing in
Expand Down
2 changes: 1 addition & 1 deletion language/enumerations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ $ref = &$suit->value;
</member>
<member>
<literal>tryFrom(int|string): ?self</literal> will take a scalar and return the
corresponding Enum Case. If one is not found, it will return <literal>null</literal>.
corresponding Enum Case. If one is not found, it will return &null;.
This is mainly useful in cases where the input scalar is untrusted and the caller wants
to implement their own error handling or default-value logic.
</member>
Expand Down
2 changes: 1 addition & 1 deletion language/oop5/overloading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<para>
PHP will not call an overloaded method from within the same overloaded method.
That means, for example, writing <code>return $this->foo</code> inside of
<link linkend="object.get">__get()</link> will return <literal>null</literal>
<link linkend="object.get">__get()</link> will return &null;
and raise an <constant>E_WARNING</constant> if there is no <literal>foo</literal> property defined,
rather than calling <link linkend="object.get">__get()</link> a second time.
However, overload methods may invoke other overload methods implicitly (such as
Expand Down
2 changes: 1 addition & 1 deletion language/predefined/weakreference.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ NULL
<entry>8.4.0</entry>
<entry>
The output of <methodname>WeakReference::__debugInfo</methodname> now includes
the referenced object, or <literal>NULL</literal> if the reference is no longer
the referenced object, or &null; if the reference is no longer
valid.
</entry>
</row>
Expand Down
2 changes: 1 addition & 1 deletion language/types/array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var_dump($array1, $array2);
<listitem>
<simpara>
<type>Null</type> will be cast to the empty string, i.e. the key
<literal>null</literal> will actually be stored under <literal>""</literal>.
&null; will actually be stored under <literal>""</literal>.
</simpara>
</listitem>
<listitem>
Expand Down
6 changes: 3 additions & 3 deletions language/types/declarations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ Stack trace:
</note>

<note>
<para>
<simpara>
It is also possible to achieve nullable arguments by making
<literal>null</literal> the default value.
&null; the default value.
This is not recommended as if the default value is changed in a child
class a type compatibility violation will be raised as the
<type>null</type> type will need to be added to the type declaration.
This behavior is also deprecated since PHP 8.4.
</para>
</simpara>
<example>
<title>Old way to make arguments nullable</title>
<programlisting role="php">
Expand Down
2 changes: 1 addition & 1 deletion reference/datetime/dateinterval/createfromdatestring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<entry>
<methodname>DateInterval::createFromDateString</methodname> now throws
<exceptionname>DateMalformedIntervalStringException</exceptionname> if an
invalid string is passed. Previously, it returned <literal>false</literal>,
invalid string is passed. Previously, it returned &false;,
and a warning was emitted.
<function>date_interval_create_from_date_string</function> has not been
changed.
Expand Down
2 changes: 1 addition & 1 deletion reference/datetime/datetime/modify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<entry>
<methodname>DateTime::modify</methodname> now throws
<exceptionname>DateMalformedStringException</exceptionname> if an
invalid string is passed. Previously, it returned <literal>false</literal>,
invalid string is passed. Previously, it returned &false;,
and a warning was emitted.
<function>date_modify</function> has not been changed.
</entry>
Expand Down
2 changes: 1 addition & 1 deletion reference/datetime/datetimeimmutable/modify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<entry>
<methodname>DateTimeImmutable::modify</methodname> now throws
<exceptionname>DateMalformedStringException</exceptionname> if an
invalid string is passed. Previously, it returned <literal>false</literal>,
invalid string is passed. Previously, it returned &false;,
and a warning was emitted.
</entry>
</row>
Expand Down
4 changes: 2 additions & 2 deletions reference/filter/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,14 @@
<simpara>
Returns &true; for <literal>"1"</literal>,
<literal>1</literal> including binary, octal and hexadecimal notations, <literal>1.0</literal> including scientific notation,
<literal>"true"</literal>, <literal>true</literal>,
<literal>"true"</literal>, &true;,
<literal>"on"</literal>,
and <literal>"yes"</literal>.
</simpara>
<simpara>
Returns &false; for <literal>"0"</literal>,
<literal>0</literal> including binary, octal and hexadecimal notations, <literal>0.0</literal> including scientific notation,
<literal>"false"</literal>, <literal>false</literal>,
<literal>"false"</literal>, &false;,
<literal>"off"</literal>,
<literal>"no"</literal>, and
<literal>""</literal>.
Expand Down
6 changes: 3 additions & 3 deletions reference/info/functions/ini-get.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<simpara>
Returns the value of the configuration option as a string on success, or an
empty string for <literal>null</literal> values. Returns &false; if the
empty string for &null; values. Returns &false; if the
configuration option doesn't exist.
</para>
</simpara>
</refsect1>

<refsect1 role="examples">
Expand Down
6 changes: 3 additions & 3 deletions reference/intl/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
<type>string</type>
</term>
<listitem>
<para>
<simpara>
The locale that will be used in intl functions when none is specified
(either by omitting the corresponding argument or by passing
<literal>NULL</literal>). These are ICU locales, not system locales.
&null;). These are ICU locales, not system locales.
The built-in ICU locales and their data can be explored at
<link xlink:href="&url.icu.locales;"/>.
</para>
</simpara>
<para>
The default value is empty, which forces the usage of ICU's default
locale. Once set, the ini setting cannot be reset to this default value.
Expand Down
6 changes: 3 additions & 3 deletions reference/mbstring/functions/mb-strcut.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
<varlistentry>
<term><parameter>length</parameter></term>
<listitem>
<para>
Length in <emphasis>bytes</emphasis>. If omitted or <literal>NULL</literal>
<simpara>
Length in <emphasis>bytes</emphasis>. If omitted or &null;
is passed, extract all bytes to the end of the string.
</para>
</simpara>
<para>
If <parameter>length</parameter> is negative, the returned string will
end at the <parameter>length</parameter>'th byte counting back from the
Expand Down
6 changes: 3 additions & 3 deletions reference/mbstring/functions/mb-substr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
<varlistentry>
<term><parameter>length</parameter></term>
<listitem>
<para>
<simpara>
Maximum number of characters to use from <parameter>string</parameter>. If
omitted or <literal>NULL</literal> is passed, extract all characters to
omitted or &null; is passed, extract all characters to
the end of the string.
</para>
</simpara>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
2 changes: 1 addition & 1 deletion reference/pdo/constants.fetch-modes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ object(TestEntity)#3 (4) {
</simpara>
<caution>
<simpara>
<classname>PDORow</classname> will return <literal>NULL</literal> without
<classname>PDORow</classname> will return &null; without
any error or warning when accessing properties or keys that are not defined.
This can make errors such as typos or queries not returning expected data
harder to spot and debug.
Expand Down
6 changes: 3 additions & 3 deletions reference/pdo/pdo/getattribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<simpara>
A successful call returns the value of the requested PDO attribute.
An unsuccessful call returns <literal>null</literal>.
</para>
An unsuccessful call returns &null;.
</simpara>
</refsect1>

<refsect1 role="errors">
Expand Down
12 changes: 6 additions & 6 deletions reference/reflection/reflectionenum/getbackingtype.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<modifier>public</modifier> <type class="union"><type>ReflectionNamedType</type><type>null</type></type><methodname>ReflectionEnum::getBackingType</methodname>
<void/>
</methodsynopsis>
<para>
<simpara>
If the enumeration is a Backed Enum, this method will return an instance
of <classname>ReflectionType</classname> for the backing type of the Enum.
If it is not a Backed Enum, it will return <literal>null</literal>.
</para>
If it is not a Backed Enum, it will return &null;.
</simpara>

</refsect1>

Expand All @@ -26,10 +26,10 @@

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An instance of <classname>ReflectionNamedType</classname>, or <literal>null</literal>
<simpara>
An instance of <classname>ReflectionNamedType</classname>, or &null;
if the Enum has no backing type.
</para>
</simpara>
</refsect1>

<refsect1 role="changelog">
Expand Down
8 changes: 4 additions & 4 deletions reference/swoole/swoole/coroutine/lock/lock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns <literal>true</literal> if the lock was acquired successfully,
<literal>false</literal> otherwise.
</para>
<simpara>
Returns &true; if the lock was acquired successfully,
&false; otherwise.
</simpara>
</refsect1>
</refentry>

Expand Down
8 changes: 4 additions & 4 deletions reference/swoole/swoole/coroutine/lock/trylock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns <literal>true</literal> if the lock was acquired successfully,
<literal>false</literal> if the lock is not available.
</para>
<simpara>
Returns &true; if the lock was acquired successfully,
&false; if the lock is not available.
</simpara>
</refsect1>
</refentry>

Expand Down
8 changes: 4 additions & 4 deletions reference/swoole/swoole/coroutine/lock/unlock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns <literal>true</literal> if the lock was released successfully,
<literal>false</literal> otherwise.
</para>
<simpara>
Returns &true; if the lock was released successfully,
&false; otherwise.
</simpara>
</refsect1>
</refentry>

Expand Down
6 changes: 3 additions & 3 deletions reference/win32service/rightinfo/get-full-username.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

<refsect1 role="returnvalues"><!-- {{{ -->
&reftitle.returnvalues;
<para>
Return the domain and username or username if domain is <literal>null</literal> or &null; if no username found.
</para>
<simpara>
Return the domain and username or username if domain is &null; or &null; if no username found.
</simpara>
</refsect1><!-- }}} -->

<refsect1 role="seealso">
Expand Down