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
 [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: Mon May 13 11:01:32 2024 UTC