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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wico at cnh dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-02 21:03 UTC] zeev at cvs dot php dot net
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 06:01:38 2025 UTC