Req #47204 [Com]: Missing support for CURLOPT_IOCTLFUNCTION

From: Date: Sat, 11 Sep 2021 12:02:35 +0000
Subject: Req #47204 [Com]: Missing support for CURLOPT_IOCTLFUNCTION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236540@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=47204&edit=1

 ID:                 47204
 Comment by:         theasialive at gmail dot com
 Reported by:        avb@php.net
 Summary:            Missing support for CURLOPT_IOCTLFUNCTION
 Status:             Open
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   Irrelevant
 PHP Version:        5.3
 Block user comment: N
 Private report:     N

 New Comment:

Unknown Error (code: The cURL request was retried 3 times and did no succeed. cURL was unable to
rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug
option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more
information.). To fix this, redo the plugin setup.


Previous Comments:
------------------------------------------------------------------------
[2009-11-15 10:53:53] svn@php.net

Automatic comment from SVN on behalf of avb
Revision: http://svn.php.net/viewvc/?view=revision&revision=290773
Log: Added workaround for PHP bug #47204
Added handling for 'strict_redirects' in Curl Adapter when CURLOPT_POSTREDIR is available

------------------------------------------------------------------------
[2009-11-14 16:02:10] avb@php.net

...also note that while this problem can be worked around by using CURLOPT_POSTFIELDS with POST
request, other request methods (e.g. PUT) only allow using CURLOPT_INFILE as request body.

------------------------------------------------------------------------
[2009-11-14 15:39:32] avb@php.net

While adding PHP-side support for CURLOPT_IOCTLFUNCTION is indeed a feature request, complete
inability for curl extension to handle redirects / digest authentication when using CURLOPT_INFILE
(CURLOPT_READDATA) looks like a genuine bug to me.

The problem lies with Curl extension registering a custom callback curl_read() as
CURLOPT_READFUNCTION (it handles both reading from a stream provided as CURLOPT_INFILE and calling
PHP callback provided as CURLOPT_READFUNCTION) but failing to implement custom callback for
rewinding the data, at least for the case when stream is used.

------------------------------------------------------------------------
[2009-11-11 20:09:43] svn@php.net

Automatic comment from SVN on behalf of avb
Revision: http://svn.php.net/viewvc/?view=revision&revision=290520
Log: Enabled redirect support in Curl adapter.
Doesn't work *at all* with POST due to PHP bug #47204, workaround needed.

------------------------------------------------------------------------
[2009-09-24 19:26:54] srinatar@php.net

since, this is a feature, this will probably apply only for 5.3 onwards. 

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=47204


--
Edit this bug report at https://bugs.php.net/bug.php?id=47204&edit=1


Thread (11 messages)

« previous php.bugs (#236540) next »