Bug #12432: not valid mysql ressource
| From: | etm at wkv dot at | Date: | Fri, 27 Jul 2001 17:31:35 +0000 |
| Subject: | Bug #12432: not valid mysql ressource | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61261@lists.php.net to get a copy of this message | ||
From: etm@wkv.at
Operating system: GNU Linux
PHP version: 4.0.6
PHP Bug Type: MySQL related
Bug description: not valid mysql ressource
$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 bug report at: http://bugs.php.net/?id=12432&edit=1