Edit report at https://bugs.php.net/bug.php?id=54022&edit=1
ID: 54022 Updated by: pierr...@php.net Reported by: mtdowling at gmail dot com Summary: Add support for curl_easy_reset -Status: Assigned +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: 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 :) Previous Comments: ------------------------------------------------------------------------ [2011-11-23 07:55:27] pierr...@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