https://bugzilla.wikimedia.org/show_bug.cgi?id=58178
--- Comment #1 from sen <[email protected]> --- and i always got this,i dont know it's my code problem or the mw,it's been work good before V1.22 PHP Warning: curl_setopt_array() [<a href='function.curl-setopt-array'>function.curl-setopt-array</a>]: Array keys must be CURLOPT constants or equivalent integer values in /w/includes/HttpFunctions.php on line 771 here is my code: $authUrl = "https://datamarket.accesscontrol.windows.net/v2/OAuth2-13/"; //验证地址 $options = array(); //看起来定义它是必要的 $options['method'] = 'POST'; $options['timeout'] = $this->config['timeout']; //有趣的是,在class里看起来是共享的 $options['postData'] = array( 'grant_type' => "client_credentials", //验证地址 'scope' => "http://api.microsofttranslator.com", //使用范围,因为这套api看起来是很全面的玩意 'client_id' => $clientID, 'client_secret' => $clientSecret ); wfErrorLog('工厂构造'.serialize($options), '/tmp/wm.log' ); //调试信息 $req = MWHttpRequest::factory($authUrl, $options); -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
