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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user