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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 06:00:02 2026 UTC