Mantis - Quercus
Viewing Issue Advanced Details
3105 minor always 11-29-08 22:05 12-10-08 09:14
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003105: curl_setopt_array doesn't work for multiple options
Trivial fix for a bug in curl_setopt_array; it returns after the first option is set on the underlying resource:

--- a/modules/quercus/src/com/caucho/quercus/lib/curl/CurlModule.java
+++ b/modules/quercus/src/com/caucho/quercus/lib/curl/CurlModule.java
@@ -642,7 +642,7 @@ public class CurlModule
       return BooleanValue.FALSE;
 
     for (Map.Entry<Value,Value> entry: options.entrySet()) {
- if (setOption(env, curl, entry.getKey().toInt(), entry.getValue()))
+ if (!setOption(env, curl, entry.getKey().toInt(), entry.getValue()))
         return BooleanValue.FALSE;
     }
 

Notes
(0003586)
nam   
12-10-08 09:14   
php/5042