cvs: phpdoc /en/language/types array.xml

From: Date: Wed, 05 Nov 2008 10:56:08 +0000
Subject: cvs: phpdoc /en/language/types array.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2402@lists.php.net to get a copy of this message
vrana Wed Nov 5 10:56:08 2008 UTC Modified files: /phpdoc/en/language/types array.xml Log: Integer properties in object to array cast (bug #45959) http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types/array.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/language/types/array.xml diff -u phpdoc/en/language/types/array.xml:1.6 phpdoc/en/language/types/array.xml:1.7 --- phpdoc/en/language/types/array.xml:1.6 Wed Nov 5 10:53:52 2008 +++ phpdoc/en/language/types/array.xml Wed Nov 5 10:56:08 2008 @@ -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 @@ 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:

« previous php.doc.cvs (#2402) next »