PHP 4.0 Bug #2189: mysql_free_result doesn't free memmory
| From: | wico at cnh dot nl | Date: | Mon, 30 Aug 1999 09:19:44 +0000 |
| Subject: | PHP 4.0 Bug #2189: mysql_free_result doesn't free memmory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10345@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux redhat 6
PHP version: 4.0 Latest CVS (30/08/1999)
PHP Bug Type: MySQL related
Bug description: mysql_free_result doesn't free memmory
<?
for ($x = 0; $x < 30000; $x++) {
$result = mysql($db_name, "select * from page where page = 'page$x'");
$array = mysql_fetch_array($result);
echo "id:" . $array["page_id"] . "<BR>"; flush();
mysql_free_result($result);
}
echo "DONE";
?>
/* this will eat all memory and crash finnaly the machiene
same script works fine under 3.12
*/