Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3105 | minor | always | 11-29-08 22:05 | 12-10-08 09:14 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003105: curl_setopt_array doesn't work for multiple options | ||||
Description: |
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; } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|