|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60439 curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION
Submitted: 2011-12-04 01:30 UTC Modified: 2011-12-04 01:34 UTC
From: Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.8 OS: Any
Private report: No CVE-ID: None
 [2011-12-04 01:30 UTC]
The curl_copy_handle function don't work when used with CURLOPT_PROGRESSFUNCTION

Test script:
$ch = curl_init('');
curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, function() { });
$ch2 = curl_copy_handle($ch);
echo curl_exec($ch);
echo curl_exec($ch2);

Expected result:
No segault

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-04 01:34 UTC]
Automatic comment from SVN on behalf of pierrick
Log: Fixed bug #60439curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION
 [2011-12-04 01:34 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2011-12-04 01:34 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 18:01:28 2023 UTC