#23719 [WFx]: mysql_default_* in mysql_connect

From: Date: Mon, 26 May 2003 15:43:28 +0000
Subject: #23719 [WFx]: mysql_default_* in mysql_connect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40449@lists.php.net to get a copy of this message
ID: 23719 User updated by: uhlar at fantomas dot sk Reported By: uhlar at fantomas dot sk Status: Wont fix Bug Type: Feature/Change Request Operating System: any PHP Version: 4.3.1 New Comment: could that be done when arguments are null? e.g. $host=NULL; $user=NULL; $pass=NULL; mysql_connect($host, $user, $pass); Previous Comments: ------------------------------------------------------------------------ [2003-05-25 12:07:01] 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-20 09:55:10] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23719&edit=1

« previous php.bugs (#40449) next »