php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #397 PHP does not use /etc/services port for mysql
Submitted: 1998-05-22 07:02 UTC Modified: 1998-05-22 12:31 UTC
From: mike at 21torr dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0 Release Candidate 4 OS: Linux
Private report: No CVE-ID: None
 [1998-05-22 07:02 UTC] mike at 21torr dot com
Please implement a getservbyname call for the default port
for mysql connections. 

We had the port set to a non standard port, but php wasn't
able to connect, since you always set a port (defaulting to
MYSQL_PORT from a mysql include file).

The right way is to first look into the services of the machine
, then if it fails to set the port to any other default value.

Cheers,
  Mike

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-22 12:31 UTC] zeev
Fixed
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 17:01:26 2019 UTC