[PHP-DEV] PHP 4.0 Bug #2189: mysql_free_result doesn't free memmory From: wico <email protected>
Date: 08/30/99

From: wico <email protected>
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
*/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>