ID:               48965
 Updated by:       il...@php.net
 Reported By:      sriram dot natarajan at gmail dot com
-Status:           Assigned
+Status:           Bogus
 Bug Type:         cURL related
 Operating System: *
 PHP Version:      5.*, 6CVS (2009-07-22)
 Assigned To:      srinatar
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is a cURL limitation..


Previous Comments:
------------------------------------------------------------------------

[2009-07-25 22:15:16] j...@php.net

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)..

------------------------------------------------------------------------

[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

Reply via email to