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
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike at 21torr dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC