php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23719 mysql_default_* in mysql_connect
Submitted: 2003-05-20 09:55 UTC Modified: 2003-05-26 10:43 UTC
From: uhlar at fantomas dot sk Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.1 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: uhlar at fantomas dot sk
New email:
PHP Version: OS:

 

 [2003-05-20 09:55 UTC] uhlar at fantomas dot sk
It would be nice, if mysql_connect used mysql_default_host, mysql_default_user and mysql_default_password even if those provided are empty, not only if they are not provided.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-25 12:07 UTC] derick@php.net
This can not be implemented as an empty password is also a valid one. We will break BC in this case if there is a default password set, and the password passed to mysql_connect is the empty string. 
 [2003-05-26 10:43 UTC] uhlar at fantomas dot sk
could that be done when arguments are null? e.g.
$host=NULL;
$user=NULL;
$pass=NULL;
mysql_connect($host, $user, $pass);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 06:01:31 2024 UTC