RE: [PHP-DEV] Wierd CVS Build problem with libmysql
| From: | Mike Robinson | Date: | Mon, 06 Nov 2000 19:55:28 +0000 |
| Subject: | RE: [PHP-DEV] Wierd CVS Build problem with libmysql | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37297@lists.php.net to get a copy of this message | ||
Michael Widenius wrote:
> Another issue:
>
> We would like to extend the mysql_connect() and mysql_pconnect() with
> 2 extra (not required) arguments:
>
> path-to-config-file and group
>
> This would allow the php program to access all clients connect options
> (like password, user and connect timeout) that the libmysqlclient library
> can provide.
>
> If the first option is given (and is not the empty string), one
> should call
>
> mysql_options(&mysql, MYSQL_READ_DEFAULT_FILE, path-to-config-file)
>
> If the second one is given one should call:
>
> mysql_options(&mysql, MYSQL_READ_DEFAULT_GROUP, group)
>
> For example:
>
>
> mysql_pconnect("host","db","","/tmp/my.cnf","php");
>
> Would read the [php] and [client] group sections from the
> /tmp/my.cnf file.
>
> What do you think about the above?
IMHO, this looks useful.
Late last week I thought Zeev was asking for last minute
do or die stuff, with a view to putting out 4.0.4.
Is this going to affect that, time wise? Maybe it should wait
until after 4.0.4?
Regards
Mike Robinson