----- Original Message ----- From: "Marcus Börger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 11:28 AM Subject: Re: [PHP-DEV] Re: Bug in xxxxx_close();
> Hello nicos, > > Tuesday, September 16, 2003, 9:45:37 AM, you wrote: > > > > "Georg Richter" <[EMAIL PROTECTED]> a écrit dans le message de > > news:[EMAIL PROTECTED] > >> Hi, > >> > >> currently I don't have time to analyze or fix it, so I hope someone will > > take > >> a look, it affects most of db-extensions which support (optional) default > >> connection. > >> > >> Sample: > >> > >> <?php > >> for ($i=0;$i<1000; $i++) { > >> $link = mysql_connect("localhost", "foo", "bar"); > >> mysql_close(); > >> } > >> ?> > >> > >> doesn't work correct: > > > I see, is mysql_close() supposed to close every link opened then ? If so I > > could work on a patch soon. > > No, these functions are supposed to close the default link only when called > without a link. I had an idea and experimented with a patch, unfortunatley > it didn't help. Maybe it gives you some more ideas and something you might > want to try out. Do you consider the default link as the last created one? > > -- > Best regards, > Marcus mailto:[EMAIL PROTECTED] Thank you Marcus. Nicos. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php