6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/29/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3049] Cannot use object of type DB_mysql as array in DataTree.php on line 590
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__.. .. . |__|| || || | | ||__\|/\||___|___
Comment
>> After Update from php-5.0.5 to php-5.1.0 i have this error in > >> Horde/IMP (when viewing Inbox): > >> > >> Cannot use object of type DB_mysql as array in > >> /horde/lib/Horde/DataTree.php on line 590 > >> > >> 584 function set($data, $charset = null) > >> 585 { > >> 586 $cats = array(); > >> 587 $cids = array(); > >> 588 foreach ($data as $cat) { > >> 589 if (!is_null($charset)) { > >> 590 $cat[1] = String::convertCharset($cat[1], $charset); > >> 591 } > >> > >> in php-5.0.5 var_dump($cat) shows: > >> array(4) { [0]=> string(1) "1" [1]=> string(14) "my@email.de" [2]=> > >> string(0) "" [3]=> NULL } > >> > >> in php-5.1.0 var_dump($cat) shows: > >> object(DB_mysql)#18 (25) { > >> ["connection"]=> > >> resource(29) of type (mysql link) > >> ["phptype"]=> > >> string(5) "mysql" > >> ["dbsyntax"]=> > >> string(5) "mysql" > >> ["prepare_tokens"]=> > >> array(0) { > >> } > >> ["prepare_types"]=> > >> array(0) { > >> } > >> ["num_rows"]=> > >> array(2) { > >> [115]=> > >> int(1) > >> [117]=> > >> int(1) > >> } > >> ["transaction_opcount"]=> > >> int(0) > >> ["autocommit"]=> > >> bool(true) > >> ["fetchmode"]=> > >> int(1) > >> ["_db"]=> > >> string(5) "horde" > >> ["features"]=> > >> array(4) { > >> ["prepare"]=> > >> bool(false) > >> ["pconnect"]=> > >> bool(true) > >> ["transactions"]=> > >> bool(true) > >> ["limit"]=> > >> string(5) "alter" > >> } > >> ["errorcode_map"]=> > >> array(17) { > >> [1004]=> > >> int(-15) > >> [1005]=> > >> int(-15) > >> [1006]=> > >> int(-15) > >> [1007]=> > >> int(-5) > >> [1008]=> > >> int(-17) > >> [1022]=> > >> int(-5) > >> [1046]=> > >> int(-14) > >> [1050]=> > >> int(-5) > >> [1051]=> > >> int(-18) > >> [1054]=> > >> int(-19) > >> [1062]=> > >> int(-5) > >> [1064]=> > >> int(-2) > >> [1100]=> > >> int(-21) > >> [1136]=> > >> int(-22) > >> [1146]=> > >> int(-18) > >> [1048]=> > >> int(-3) > >> [1216]=> > >> int(-3) > >> } > >> ["prepared_queries"]=> > >> array(0) { > >> } > >> ["prepare_maxstmt"]=> > >> int(0) > >> ["last_query"]=> > >> string(171) "SELECT datatree_id, datatree_name, datatree_parents, > >> datatree_order FROM horde_datatree WHERE datatree_id IN (1, 0) AND > >> group_uid = 'horde.shares.nag' ORDER BY datatree_id" > >> ["fetchmode_object_class"]=> > >> string(8) "stdClass" > >> ["options"]=> > >> array(7) { > >> ["persistent"]=> > >> bool(false) > >> ["ssl"]=> > >> bool(false) > >> ["debug"]=> > >> int(0) > >> ["seqname_format"]=> > >> string(6) "%s_seq" > >> ["autofree"]=> > >> bool(false) > >> ["portability"]=> > >> int(17) > >> ["optimize"]=> > >> string(11) "performance" > >> } > >> ["dbh"]=> > >> NULL > >> ["_debug"]=> > >> bool(false) > >> ["_default_error_mode"]=> > >> NULL > >> ["_default_error_options"]=> > >> NULL > >> ["_default_error_handler"]=> > >> string(0) "" > >> ["_error_class"]=> > >> string(8) "DB_Error" > >> ["_expected_errors"]=> > >> array(0) { > >> } > >> ["dsn"]=> > >> array(15) { > >> ["phptype"]=> > >> string(5) "mysql" > >> ["dbsyntax"]=> > >> string(5) "mysql" > >> ["username"]=> > >> string(5) "horde" > >> ["password"]=> > >> string(7) "xxxxx" > >> ["protocol"]=> > >> string(3) "tcp" > >> ["hostspec"]=> > >> string(9) "localhost" > >> ["port"]=> > >> int(3306) > >> ["socket"]=> > >> bool(false) > >> ["database"]=> > >> string(5) "horde" > >> ["persistent"]=> > >> bool(false) > >> ["charset"]=> > >> string(10) "iso-8859-1" > >> ["driverconfig"]=> > >> string(5) "horde" > >> ["group"]=> > >> string(16) "horde.shares.nag" > >> ["table"]=> > >> string(14) "horde_datatree" > >> ["table_attributes"]=> > >> string(25) "horde_datatree_attributes" > >> } > >> } > >> > >> > >> thankyou... > >
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