Summary | Cannot use object of type DB_mysql as array in DataTree.php on line 590 |
Queue | Horde.org Servers |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | horde (at) expires-200501 (dot) dpits (dot) com |
Created | 11/27/2005 (7196 days ago) |
Due | |
Updated | 04/16/2007 (6691 days ago) |
Assigned | 11/27/2005 (7196 days ago) |
Resolved | 11/27/2005 (7196 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
~# pear install DB
downloading DB-1.7.11.tgz ...
Starting to download DB-1.7.11.tgz (132,064 bytes)
.....................done: 132,064 bytes
install ok: channel://pear.php.net/DB-1.7.11
but no changes, the same bug again :( any idea?
idea what can i do..
State ⇒ Not A Bug
State ⇒ Feedback
Priority ⇒ 2. Medium
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Cannot use object of type DB_mysql as array in DataTree.php on line 590
Queue ⇒ Horde.org Servers
State ⇒ Unconfirmed
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...