Req #54022 [Com]: Add support for curl_easy_reset

From: Date: Tue, 31 Jan 2012 16:25:05 +0000
Subject: Req #54022 [Com]: Add support for curl_easy_reset
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-167014@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54022&edit=1

 ID:                 54022
 Comment by:         jacob dot bare at gmail dot com
 Reported by:        mtdowling at gmail dot com
 Summary:            Add support for curl_easy_reset
 Status:             Closed
 Type:               Feature/Change Request
 Package:            cURL related
 Operating System:   Mac OS X
 PHP Version:        5.3.5
 Assigned To:        pierrick
 Block user comment: N
 Private report:     N

 New Comment:

I was wondering if this fix was added to any active PHP 5 releases. I looked at the change log and
wasn't able to find this Bug # referenced anywhere. The latest build is newer than when this
bug was addressed. If it is available in 5.3.9 is there any available documentation on usage?
Thanks!


Previous Comments:
------------------------------------------------------------------------
[2011-12-04 01:44:27] pierrick@php.net

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.

Committed to trunk :)

------------------------------------------------------------------------
[2011-11-23 07:55:27] pierrick@php.net

The provided patch is not valid. All the handlers of the php_curl_handlers 
structure also need to be reseted.

------------------------------------------------------------------------
[2011-08-19 20:17:08] mtdowling at gmail dot com

Any news on this?  I submitted a patch and announced it on the mailing list.  Please let me know if
you need anything further from me.

------------------------------------------------------------------------
[2011-02-15 04:57:36] mtdowling at gmail dot com

Description:
------------
It's difficult to use the same curl handle for multiple requests to the same host and port when
many unknown options could have been applied to the handle after its creation.  Many of the
curl_setopt options can be removed from a handle using some careful option setting, but some options
cannot.  Adding a curl_easy_reset method to the PHP bindings would allow PHP developers to more
easily implement connection pooling and utilize keep-alive sessions over HTTP/1.1.

curl_easy_reset has been available since version 7.12.1
(http://curl.haxx.se/libcurl/c/curl_easy_reset.html):

Re-initializes all options previously set on a specified CURL handle to the default values. This
puts back the handle to the same state as it was in when it was just created with curl_easy_init(3).

It does not change the following information kept in the handle: live connections, the Session ID
cache, the DNS cache, the cookies and shares.



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



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


Thread (6 messages)

« previous php.bugs (#167014) next »