Update of /cvsroot/phpwebsite-comm/modules/twitter/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18554/class
Modified Files:
Twitter_Runtime.php
Log Message:
curl_setopt_array does not exist on older PHP versions
Index: Twitter_Runtime.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/twitter/class/Twitter_Runtime.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Twitter_Runtime.php 3 Jun 2008 03:37:30 -0000 1.5
--- Twitter_Runtime.php 4 Jun 2008 03:13:27 -0000 1.6
***************
*** 83,93 ****
/* Set options */
! curl_setopt_array($oCurl, array(
! CURLOPT_RETURNTRANSFER => true,
! CURLOPT_USERAGENT => 'phpWebSite',
! CURLOPT_CONNECTTIMEOUT => TWITTER_CONNECT_TIMEOUT,
! CURLOPT_TIMEOUT => TWITTER_TRANSFER_TIMEOUT,
! CURLOPT_DNS_CACHE_TIMEOUT => TWITTER_DNS_TIMEOUT
! ));
/* Request URL */
--- 83,91 ----
/* Set options */
! curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true);
! curl_setopt($oCurl, CURLOPT_USERAGENT, 'phpWebSite');
! curl_setopt($oCurl, CURLOPT_CONNECTTIMEOUT, TWITTER_CONNECT_TIMEOUT);
! curl_setopt($oCurl, CURLOPT_TIMEOUT, TWITTER_TRANSFER_TIMEOUT);
! curl_setopt($oCurl, CURLOPT_DNS_CACHE_TIMEOUT, TWITTER_DNS_TIMEOUT);
/* Request URL */
|