php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2209 [memmory leak?] mysql_free_result won't free memmory
Submitted: 1999-09-01 05:09 UTC Modified: 1999-09-02 22:43 UTC
From: wdl at kabelfoon dot nl Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (01/09/1999) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wdl at kabelfoon dot nl
New email:
PHP Version: OS:

 

 [1999-09-01 05:09 UTC] wdl at kabelfoon dot nl
/* I think this is a better type for bug #2189 */

<?
	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 22:43 UTC] zeev at cvs dot php dot net
Fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 22:01:33 2024 UTC