title: Warning: curl_setopt() expects parameter 2 to be long, string given
body: <p>Tried to write init function for CURL. But have error </p>
  
  <blockquote>
    <p>Warning: curl_setopt() expects parameter 2 to be long, string given</p>
  </blockquote>
  
  <p>Code is simple.</p>
  
  <pre><code>$config['CURLOPT_URL'] = "https://weburl/index.action";
  $config['CURLOPT_VERBOSE'] = 0;
  $config['CURLOPT_SSLVERSION'] = 3;
  $config['CURLOPT_SSL_VERIFYPEER'] = FALSE;
  $config['CURLOPT_SSL_VERIFYHOST'] = 2;
  $config['CURLOPT_FOLLOWLOCATION'] = 0;
  
  $tuCurl = curl_init();
  foreach($this-&gt;config as $key =&gt; $val)
  {
      curl_setopt($tuCurl, $key, $val);
  }
  </code></pre>