note 53730 rejected from function.mysql-free-result by betz
| From: | betz@php.net | Date: | Fri, 10 Jun 2005 21:37:04 +0000 |
| Subject: | note 53730 rejected from function.mysql-free-result by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90241@lists.php.net to get a copy of this message | ||
Note Submitter: rcarsey at monmouth dot edu
----
This is interesting (to me anyway):
<?php
$link=mysql_connect($host, $user, $pass)
$resultset=mysql_query("select * from table1");
$resultset1 = $resultset;
mysql_free_result($resultset);
// $resultset1 is also invalidated. I guess even though
// we're doing a copy-by-value of the resultset, the value
// is actually some kind of pointer to some mysql result
// memory.
?>