ID: 38397
Updated by: [EMAIL PROTECTED]
Reported By: ante at novisplet dot com
-Status: Open
+Status: Feedback
Bug Type: SPL related
Operating System: Win XP
PHP Version: 5.2.0RC1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-08-09 09:32:57] ante at novisplet dot com
Description:
------------
If I have an array like this:
ArrayObject Object
(
[group] => Document_Group Object
(
[_dbat] => 0
[_table] => document_group
[_tableat] => document_group
[_where] =>
[_saved] => 1
[_lasterr] =>
[_original] => Array
(
[0] => 1
[1] => skupina 1
)
[group_id] => 1
[name] => skupina 1
)
[documents] => ArrayObject Object
(
[0] => Document Object
(
[_dbat] => 0
[_table] => document
[_tableat] => document
[_where] =>
[_saved] => 1
[_lasterr] =>
[_original] => Array
(
[0] => 1
[1] => Dokument 1
[2] =>
[3] => 1
)
[document_id] => 1
[name] => Dokument 1
[path] =>
[group_id] => 1
)
[1] => Document Object
(
[_dbat] => 0
[_table] => document
[_tableat] => document
[_where] =>
[_saved] => 1
[_lasterr] =>
[_original] => Array
(
[0] => 3
[1] => Dokument 3
[2] =>
[3] => 1
)
[document_id] => 3
[name] => Dokument 3
[path] =>
[group_id] => 1
)
[2] => Document Object
(
[_dbat] => 0
[_table] => document
[_tableat] => document
[_where] =>
[_saved] => 1
[_lasterr] =>
[_original] => Array
(
[0] => 5
[1] => Dokument 5
[2] =>
[3] => 1
)
[document_id] => 5
[name] => Dokument 5
[path] =>
[group_id] => 1
)
)
)
And if I want to access group name the path would be
$array->group->name
but it doesn't work...
I have to use "old style"
$array['group']->name
to get group name...
Reproduce code:
---------------
See description...
Expected result:
----------------
Name of the group to be in
$array->group->name
Actual result:
--------------
but it is in
$array['group']->name
Although everything is "ArrayObject"-ed...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38397&edit=1