Re: [PATCH] optional parameter to mysql_connect() to create truly new link

From: Date: Wed, 21 Nov 2001 10:16:51 +0000
Subject: Re: [PATCH] optional parameter to mysql_connect() to create truly new link
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71193@lists.php.net to get a copy of this message
Markus Fischer wrote: > Hi, > > The attached patch against current CVS adds an optional > parameter to mysql_connect() to specify if a truly new link > to the database should be established. The patch changes the > prototype to: > > resource mysql_connect ([string hostname [, string username [, string > password [, bool new_link ]]]]); > > There is no BC issue. The optional parameter is ignored when > using mysql_pconnect(). I think it's not right to ignore this with mysql_pconnect(). In this case the meaning of this flag should be: 'return existing mysql resource (or create new) not yet returned by similar call during this request' I'mean I would like to take advantage of mysql_pconnect() - still I have two databases and only one mysql user account. > > FYI: This is what a few people have complained about in the > past and there are existing Bu^H^HFeature Requests for this > behaviour (can't find them right now, too late). > #14137 Lenar

« previous php.dev (#71193) next »