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

--- Comment #9 from Alex Legler <a...@gentoo.org> ---
(In reply to comment #8)
> It turns out that this fix is not as simple as thought. $wgDBport is set to
> 5432. If I make mysqli consider $wgDBport by default, all instances using
> mysqli on 3306 will be broken.

Can't this be refactored to default to null and be overwritten in the specific
database implementations should the value not be set by the user?

> Further, running PHP 5.6 it seems to be ok to
> use hostname:port. 
> So my attempt to fix this for now is to parse the port off the hostname. This
> needs to work for IPv4 and IPv6 as well. See
> https://gerrit.wikimedia.org/r/#/c/109634/. Please review and comment.

That won't handle the syntax for persistent connections correctly which is
'p:<host>:<port>'.

-- 
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