ID: 48965 Updated by: j...@php.net Reported By: sriram dot natarajan at gmail dot com Status: Assigned Bug Type: cURL related Operating System: * PHP Version: 5.*, 6CVS (2009-07-22) Assigned To: srinatar New Comment:
The reason is explained here: http://curl.haxx.se/libcurl/c/curl_easy_duphandle.html You can not close the original handle before doing curl_exec($copy).. Previous Comments: ------------------------------------------------------------------------ [2009-07-21 20:45:19] srina...@php.net yes, this is an issue with HEAD, 5.2 and 5.3 - sriram ------------------------------------------------------------------------ [2009-07-20 14:55:36] j...@php.net See also bug #48774 ------------------------------------------------------------------------ [2009-07-20 09:42:17] j...@php.net only PHP_5_3 and HEAD? Not PHP_5_2..? ------------------------------------------------------------------------ [2009-07-18 07:10:07] sriram dot natarajan at gmail dot com Description: ------------ currently, within php tests, the following tests are marked as 'expected failures' curl_copy_handle_basic_002.phpt curl_copy_handle_basic_005.phpt which both does some thing like curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe"); $copy = curl_copy_handle($ch); curl_close($ch); $curl_content_copy = curl_exec($copy); curl_close($copy); var_dump( $curl_content_copy ); Expected result: ---------------- these tests should pass fine. Actual result: -------------- string(163) "array(1) { ["test"]=> string(7) "getpost" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48965&edit=1