php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2189 mysql_free_result doesn't free memmory
Submitted: 1999-08-30 05:19 UTC Modified: 1999-09-02 21:03 UTC
From: wico at cnh dot nl Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Latest CVS (30/08/1999) OS: linux redhat 6
Private report: No CVE-ID: None
 [1999-08-30 05:19 UTC] wico at cnh dot nl
<?
	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
*/

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-02 21:03 UTC] zeev at cvs dot php dot net
Fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 21:01:31 2024 UTC