Description
Hi,
We're using your awesome Twitter client for one of our clients in a WordPress plugin. We've found out that the code does work great on our Dev, Test and Acceptance environments. On the Production environment we were getting the following error:
Warning: curl_setopt() expects parameter 2 to be long, string given
I've done some research, and found the following solution: http://php.net/manual/en/function.curl-setopt.php#107314
This fixed the issue.
I thought this would maybe interesting for you.
The server we use is running PHP 5.3.28 with the following cURL settings:
cURL support: enabled
cURL Information: 7.15.5
Age: 2
Features
AsynchDNS: No
Debug: No
GSS-Negotiate: Yes
IDN: Yes
IPv6: Yes
Largefile: Yes
NTLM: Yes
SPNEGO: No
SSL: Yes
SSPI: No
krb4: No
libz: Yes
CharConv: No
Protocols: tftp, ftp, telnet, dict, ldap, http, file, https, ftps
Host: x86_64-redhat-linux-gnu
SSL Version: OpenSSL/0.9.8b
ZLib Version: 1.2.3
Kind regards,
Danny de Haan