note 53730 added to function.mysql-free-result

From: Date: Fri, 10 Jun 2005 20:36:07 +0000
Subject: note 53730 added to function.mysql-free-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-90238@lists.php.net to get a copy of this message
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. ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-free-result.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53730 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53730&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53730&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53730&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53730&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53730&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53730&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90238) next »