Bug #60439 [Opn->Csd]: curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION
| From: | pierrick@php.net | Date: | Sun, 04 Dec 2011 01:34:56 +0000 |
| Subject: | Bug #60439 [Opn->Csd]: curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165645@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60439&edit=1
ID: 60439
Updated by: pierrick@php.net
Reported by: pierrick@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] pierrick@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] pierrick@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