php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60133 force_tcp and force_hostname support
Submitted: 2011-10-25 15:08 UTC Modified: 2011-10-26 13:56 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: rendszergazdak at dotroll dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.3.8 OS: All
Private report: No CVE-ID: None
 [2011-10-25 15:08 UTC] rendszergazdak at dotroll dot com
Description:
------------
For hosting providers it is a constant issue to move users around a cluster. Since most users and common CMS systems assume "localhost", it would be nice to have an option to force TCP mode instead of the Unix socket and force a hostname, but allow the users to pick a username and password they desire. (That's why MySQL safe mode is no use.)

We have created a patch for this issue and would like to see it included in PHP.


Patches

php-mysqlforce.patch (last revision 2011-10-25 15:09 UTC by rendszergazdak at dotroll dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-26 13:56 UTC] johannes@php.net
We won't add this as a core feature. Instead of patching the code I'd suggest creating a mysqlnd plugin similar to what I described in my blog on http://schlueters.de/blog/archives/146-mysqlnd-plugins-for-PHP-in-practice.html
 [2011-10-26 13:56 UTC] johannes@php.net
-Status: Open +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 04:01:33 2024 UTC