Re: PHP 4.0 Bug #2189: mysql_free_result doesn't free memmory

From: Date: Tue, 31 Aug 1999 09:05:12 +0000
Subject: Re: PHP 4.0 Bug #2189: mysql_free_result doesn't free memmory
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10370@lists.php.net to get a copy of this message
At 09:19 30-8-99 +0000, wico@cnh.nl wrote: >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 >*/ 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@cnh.nl) ICQ - 33093128 (Web) Programmer / System Administrator

« previous php.dev (#10370) next »