Re: cvs: /php3 ChangeLog
| From: | Sascha Schumann | Date: | Wed, 24 Nov 1999 19:42:53 +0000 |
| Subject: | Re: cvs: /php3 ChangeLog | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-13070@lists.php.net to get a copy of this message | ||
On Tue, Nov 23, 1999 at 08:18:01AM -0500, Rasmus Lerdorf wrote:
> > or did i miss something?
>
> No, you didn't miss anything. Some bugs popped up and I have been slow in
> addressing them. The main thing left at this point is that the
> mysql_change_user() function needs to modify the hashed information for
> the persistent connection it modifies.
This could be easily solved, if the MySQL module would not be
affected by a bad design decision which has been made for
many other modules as well.
The MySQL module only stores the database handle in the list.
This is convenient for most functions; the ugly side of it is
that you loose all meta information associated with the
database connection.
If this information (host, username, password) would be
stored in the list as well, the required information to
update the persistent list (in this case) would be readily
available.
As a workaround, a new hash table should be added which maps
connection handles to meta information, so that meta
information can be easily looked up. This increases the
overhead of maintaining connections, but is the prerequisite
for performing the action Rasmus described.
--
Regards,
Sascha Schumann
Consultant