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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-02 22:43 UTC] zeev at cvs dot php dot net
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC