#25253 [Opn->Bgs]: mysql_{p}connect could use default parameters if supplied arguments are NULL

From: Date: Sat, 30 Aug 2003 07:48:14 +0000
Subject: #25253 [Opn->Bgs]: mysql_{p}connect could use default parameters if supplied arguments are NULL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46935@lists.php.net to get a copy of this message
ID: 25253 Updated by: georg@php.net Reported By: uhlar at fantomas dot sk -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: any PHP Version: 4.3.3 New Comment: If (mysql)user is not specified (NULL) the current (system) user will be assumed. Changing this to a default value would break BC. Previous Comments: ------------------------------------------------------------------------ [2003-08-26 11:51:54] uhlar at fantomas dot sk Description: ------------ mysql_connect() and mysql_pconnect(), when called without arguments, use default values mysql.detault_* variables to detect what host/username/password to use. But they do so only if they are calles withou any argument. Could be this enhanced to use default variables whenever NULL is used as value? e.g. mysql_connect("new.host.name", NULL, NULL, MYSQL_CLIENT_COMPRESS) would take mysql.default_user and mysql.default_password as username and password. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25253&edit=1

« previous php.bugs (#46935) next »