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
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
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>