|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10541 curl leaks fds on failure
Submitted: 2001-04-28 16:56 UTC Modified: 2001-04-28 17:47 UTC
From: Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0.4pl1 OS: RedHat 7.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2001-04-28 16:56 UTC]
curl leaks file descriptors when a curl request fails or is aborted.  How to reproduce:

1. Put a file called "blah.txt" with some plain text in docroot.

2. curltest.php:

header("Content-type: text/plain");

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://$SERVER_NAME/blah.txt");


3. run httpd -X and find the process id

4. open curltest.php in your browser and hit Escape (it will hang because the Apache process is busy processing the PHP script)

5. (on Linux) ls -l /proc/<httpd-pid>/fs


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-28 17:47 UTC]
fixed in cvs, thanks for the report.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Apr 19 18:01:24 2021 UTC