Integer properties in object to array cast (bug #45959)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268348 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2008-11-05 10:56:08 +00:00
parent 3ef6a74874
commit 95f43a7118

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<sect1 xml:id="language.types.array">
<title>Arrays</title>
@ -539,7 +539,8 @@ $error_descriptions[8] = "This is just an informal notice";
If an <type>object</type> is converted to an <type>array</type>, the result
is an <type>array</type> whose elements are the <type>object</type>'s
properties. The keys are the member variable names, with a few notable
exceptions: private variables have the class name prepended to the variable
exceptions: integer properties are unaccessible;
private variables have the class name prepended to the variable
name; protected variables have a '*' prepended to the variable name. These
prepended values have null bytes on either side. This can result in some
unexpected behaviour: