Re: [PHP-DEV] PHP 4.0 Bug #2189: mysql_free_result doesn't free memmory From: Wico de Leeuw (wico <email protected>)
Date: 08/31/99

At 09:19 30-8-99 +0000, wico <email protected> wrote:
>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
>*/

Has anyone already looked at this big... i thing its a very serious bug
wich will affect many people

Tnx in advance

wico

- Programming today is a race between software engineers striving to
        build bigger and better idiot-proof programs, and the Universe trying to
        produce bigger and better idiots. So far, the Universe is winning.

- Practice makes perfect, but if nobody's perfect, why practice?

Wico de Leeuw "Melt_Down", (wico <email protected>) ICQ - 33093128

(Web) Programmer / System Administrator

-- 
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>