Re: Bug #12432 Updated: not valid mysql ressource
| From: | Andy | Date: | Tue, 31 Jul 2001 14:32:26 +0000 |
| Subject: | Re: Bug #12432 Updated: not valid mysql ressource | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61646@lists.php.net to get a copy of this message | ||
STOP SENDING THESE EMAILS
To unsubscribe...
send a message to
php-dev-unsubscribe@lists.php.net
or go to
http://php.net/support.php, click on PHP-DEV,
type your email and hit unsubscribe.
On Mon, 30 Jul 2001, Ramsi Sras wrote:
>
> UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME
> PLEASE!!!!!!!!!!!!!!UNSUBSCRIBE ME PLEASE!!!!!!!!!!!!!!
>
> etm@wkv.at schrieb:
>
> > ID: 12432
> > User updated by: etm@wkv.at
> > Reported By: etm@wkv.at
> > Old Status: Closed
> > Status: Open
> > Bug Type: MySQL related
> > Operating System: GNU Linux
> > PHP Version: 4.0.6
> > New Comment:
> >
> > The eMail system is not working correctly,
> > there is some more sourcecode in my message,
> > please watch it directly
> >
> > http://www.php.net/bugs.php?id=12432
> >
> > First I thought it is some sort of scope problem,
> > but it is also reproducable with different var Names.
> > I think he ignores the link variable totally. Maybe
> > closes the default link (first created)
> >
> > Previous Comments:
> > ------------------------------------------------------------------------
> >
> > [2001-07-27 20:43:22] mfischer@php.net
> >
> > This is currently a feature. Although you haven't given full source I assume both
> > 'mysql_connect()'s were the same. Two or more connects with the same parameter reuse the
> > allready established connection and don't create a new one. So, closing one of them closes all
> > other, too.
> >
> > Re-Open if my assumption were wrong.
> >
> > ------------------------------------------------------------------------
> >
> > [2001-07-27 13:31:35] etm@wkv.at
> >
> > $eLink = mysql_connect(...);
> > .
> > .
> > .
> >
> > class test {
> >
> > function einTest() {
> > $eLink = mysql_connect();
> > mysql_close($eLink);
> > }
> >
> > }
> >
> > $aVar = new test();
> > $aVar->einTest();
> > mysql_query("...",$eLink);
> >
> > -----> not valid mysql ressource
> >
> > After einTest() it looks like it closes the outside mysql_connection ($eLink) no matter
> > how the connection
> > var in einTest() is named!
> >
> > Serious stuff!
> >
> > ------------------------------------------------------------------------
> >
> > Edit this bug report at
> > http://bugs.php.net/?id=12432&edit=1
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
----------------------------------------
Content-Type: text/html; name="unnamed"
Content-Transfer-Encoding: 7bit
Content-Description:
----------------------------------------