From 95f43a711833384c17679d92f64f9722171b4655 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 5 Nov 2008 10:56:08 +0000 Subject: [PATCH] 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 --- language/types/array.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/language/types/array.xml b/language/types/array.xml index a257fc0340..0849fca214 100644 --- a/language/types/array.xml +++ b/language/types/array.xml @@ -1,5 +1,5 @@ - + Arrays @@ -539,7 +539,8 @@ $error_descriptions[8] = "This is just an informal notice"; If an object is converted to an array, the result is an array whose elements are the object'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: