1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 15:52:15 +01:00

Uninitialized type properties are silently discarded on array cast

Cf. <https://bugs.php.net/81629>.
This commit is contained in:
Christoph M. Becker
2021-11-17 15:15:09 +01:00
parent a464e3bda1
commit d332b5ae70
2 changed files with 4 additions and 0 deletions

View File

@@ -840,6 +840,8 @@ $error_descriptions[8] = "This is just an informal notice";
private variables have the class name prepended to the variable
name; protected variables have a '*' prepended to the variable name. These
prepended values have <literal>NUL</literal> bytes on either side.
Uninitialized <link linkend="language.oop5.properties.typed-properties">typed properties</link>
are silently discarded.
</para>
<informalexample>

View File

@@ -17,6 +17,8 @@
exceptions: private variables have the class name prepended to the variable name,
and protected variables have a <literal>*</literal> prepended to the variable name.
These prepended values have <literal>NUL</literal> bytes on either side.
Uninitialized <link linkend="language.oop5.properties.typed-properties">typed properties</link>
are silently discarded.
</para>
</refsect1>