6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5604] ListMessages endless loop
*
Your Email Address
*
Spam protection
Enter the letters below:
..__.. . __.. . || |\ /(__ |\/| \__||__| \/ .__)| |
Comment
> <?php > > $a = array('1' => 1, '2' => 2); > > $b = (object)$a; > > $c = get_object_vars($b); > > echo "get_object_vars:\n"; > > foreach($c as $name=>$value) { > > echo " $name: $value\n"; > > } > > echo "iterator(?):\n"; > > foreach($b as $name=>$value) { > > echo " $name: $value\n"; > > } > > ?> > > > > > > Output on CentOS5 (PHP 5.1.6): > > get_object_vars: > > iterator(?): > > > > > > Output on Fedora7 (PHP 5.2.2): > > get_object_vars: > > iterator(?): > > 1: 1 > > 2: 2 > > > > > > It means that you can't use get_object_vars to access array content > in lib/Horde/Serialize/JSON.php:161 (on both systems) and with > iterator you can access array content only with PHP 5.2.2. If you > typecast object back to array, you can access array content also with > PHP 5.1.6 (CentOS5). > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers