|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33524 mysql_connect takes too much time connecting to an ip addr
Submitted: 2005-06-30 16:36 UTC Modified: 2005-06-30 16:55 UTC
From: gonzalo at livra dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.3.10 OS: WIN 2K
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gonzalo at livra dot com
New email:
PHP Version: OS:


 [2005-06-30 16:36 UTC] gonzalo at livra dot com
Using mysql_connect, or mysql_pconnect to an IP address, it takes too much time! (4 seconds to connect!) could be an reverse lookup problem...if u add an entry on "Hosts" file, and u reference to this entry, it fly! (like pelanne says in his post:

Reproduce code:
$link = mssql_connect(",1044", "user", "Pass");

Expected result:
the same result, but faster

Actual result:
slow connection :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-30 16:45 UTC]
PHP doesn't do any referse lookups. 
If the underlying library does them (and it's slow for you), that's definitely not PHP problem and we can't fix it.
 [2005-06-30 16:55 UTC] gonzalo at livra dot com
ok thanks!
i will try to contact people who makes "mssql" library
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 25 16:01:29 2024 UTC