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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rendszergazdak at dotroll dot com
New email:
PHP Version: OS:

 

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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 09:01:31 2025 UTC