https://bugzilla.wikimedia.org/show_bug.cgi?id=54120

Alexey <al...@all-x.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |al...@all-x.net

--- Comment #6 from Alexey <al...@all-x.net> ---
I've faced the same issue. The problem starts in debug message:

includes/objectcache/SqlBagOStuff.php:147:

if ( $wgDebugDBTransactions ) {
    wfDebug( sprintf( "Connection %s will be used for SqlBagOStuff\n", $db ) );
}

that calls __toString method for $db:

includes/db/Database.php:

public function __toString() {
    return (string)$this->mConn;
}

I use MySQL database and in my case $this->mConn is an object of type mysqli
that can't be converted to String.

To print type of connection I've changed return expression to $this->getType()
but not sure what behaviour was intended.

My config:
MediaWiki     1.22.0 (80d6477)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to