add support for setting ssl version to use
[plcapi.git] / test / parse_args.php
index 81f5bd0..151d943 100644 (file)
@@ -34,7 +34,8 @@
                                $param = explode('=', $param);
                                if(count($param) > 1)
                                {
-                                       $$param[0]=$param[1];
+                                       $pname = $param[0];
+                                       $$pname = $param[1];
                                }
                        }
                }
        {
                $HTTPSIGNOREPEER = false;
        }
+       if(!isset($HTTPSVERIFYHOST))
+       {
+               $HTTPSVERIFYHOST = 2;
+       }
+       if(!isset($SSLVERSION))
+       {
+               $SSLVERSION = 0;
+       }
        if(!isset($PROXY))
        {
                $PROXYSERVER = null;
                        $PROXYPORT = 8080;
                }
        }
+    // used to silence testsuite warnings about proxy code not being tested
+    if(!isset($NOPROXY))
+    {
+        $NOPROXY = false;
+    }
        if(!isset($URI))
        {
                // GUESTIMATE the url of local demo server