我使用了这个但没有成功登录
http://petehowe.co.uk/2010/example-of-calling-the-bugzilla-api-using-php-zend-framework/
这是我的代码
我没有得到回声'ASDASD'; o/p 在浏览器中,所以在 User.login 中出现问题
require_once 'C:\xampp\htdocs\eventBot\system\libraries\Zend\XmlRpc\Client.php';
echo "123";
$oClient = new Zend_XmlRpc_Client('http://info.mydomainname.com:8080/bugzilla/xmlrpc.cgi');
echo "hello";
$oHttpClient = new Zend_Http_Client();
echo "123";
$oHttpClient->setCookieJar();
$oClient->setHttpClient($oHttpClient);
$aResponse = $oClient->call('User.login', array(array(
'login' => 'myloginname@domainname',
'password' => 'mypassword',
'remember' => 1
)));
echo "ASDASD";
echo "$aResponse";
$aResponse = $oClient->call('Bug.create', array(array(
'product' => "My Product",
'component' => "My Component",
'summary' => "This is the summary of the bug I'm creating",
'version' => "unspecified",
'description' => "This is a description of the bug",
'op_sys' => "All",
'platform' => "---",
'priority' => "P5",
'severity' => "Trivial"
)));
$iBugId = $aResponse['id'];
$aResponse = $oClient->call('User.logout');
echo "ddfgfd";