Check the version of your CURL and PHP installation. CURLOPT_CONNECTTIMEOUT_MS added in cURL 7.16.2. Available since PHP 5.2.3. PHP: curl_setopt - Manual
tmsh show sys version
Sys::Version
Main Package
Product BIG-IP
Version 11.4.0
Build 2384.0
Edition Final
Date Thu May 16 18:49:32 PDT 2013
curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8y zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz