Edit report at https://bugs.php.net/bug.php?id=60439&edit=1
ID: 60439 Updated by: pierr...@php.net Reported by: pierr...@php.net Summary: curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION -Status: Open +Status: Closed Type: Bug Package: cURL related Operating System: Any PHP Version: 5.3.8 -Assigned To: +Assigned To: pierrick Block user comment: N Private report: N New Comment: 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 http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-12-04 01:34:37] pierr...@php.net Automatic comment from SVN on behalf of pierrick Revision: http://svn.php.net/viewvc/?view=revision&revision=320341 Log: Fixed bug #60439curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION ------------------------------------------------------------------------ [2011-12-04 01:30:06] pierr...@php.net Description: ------------ The curl_copy_handle function don't work when used with CURLOPT_PROGRESSFUNCTION Test script: --------------- <?php $ch = curl_init('http://www.php.net'); 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); unset($ch); echo curl_exec($ch2); Expected result: ---------------- No segault Actual result: -------------- Segfault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60439&edit=1