title: curl unexpected results, unknown error
body: <p>I have a vps with centos 5.4 and php ver 5.2.17.
  Oddly enough curl is not working correctly on this server.
  This code:</p>
  
  <pre><code>&lt;?php
  $creq = curl_init();
  curl_setopt($creq, CURLOPT_URL, "http://www.nonexistent.zong");
  curl_exec($creq);
  
  if (curl_errno($creq)) {
  echo "err";
  print curl_error($creq);
  } else { echo "ok";
  curl_close($creq);
  }
  ?&gt;
  </code></pre>
  
  <p>oddly enough returns ok!!!
  On my local server where tests are fine I have php 5.4 so I was thinking maybe that's the case IDK.</p>
  
  <p>Any idea? 
  Thanks</p>