From:             
Operating system: Mac OS X
PHP version:      5.3.5
Package:          cURL related
Bug Type:         Feature/Change Request
Bug description:Add support for curl_easy_reset

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 bug report at http://bugs.php.net/bug.php?id=54022&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54022&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54022&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54022&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54022&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54022&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54022&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54022&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54022&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54022&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54022&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54022&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54022&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54022&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54022&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54022&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54022&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54022&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54022&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54022&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54022&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54022&r=mysqlcfg

Reply via email to