|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13225 Memmory leak in curl
Submitted: 2001-09-10 04:46 UTC Modified: 2001-10-22 14:54 UTC
From: wico at cnh dot nl Assigned:
Status: Not a bug Package: cURL related
PHP Version: 4.0.6 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.
Block user comment
Status: Assign to:
Bug Type:
From: wico at cnh dot nl
New email:
PHP Version: OS:


 [2001-09-10 04:46 UTC] wico at cnh dot nl

If you run this script you will only see your mem usage (slowly) grow; it looks like curl_close won't free the memmory as it won't make a diff if you use it or not :)




	for ($x = 0; $x < 100000; ++$x) {
		$handler = curl_init();
		curl_setopt($handler, CURLOPT_URL, '');
		curl_setopt($handler, CURLOPT_RETURNTRANSFER, 1);
		$data = curl_exec($handler);
		unset($handler, $data);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-22 14:54 UTC]
not a php bug.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 13:01:29 2024 UTC