버그로부터 주석을 추출하는 프로그램을 작성 중입니다. 그래서 일단 실제로 만약 정말 확실하지 않다 그래서 .... 내가 질라에 연결을 시도하고 그래서 여기 http://bugzilla.yourdomainname.com/xmlrcp.cgiBugzilla에서 XML-RPC가 작동하지 않고 함수 사용법을 사용했습니다.
내 코드는 퍼팅
을 통해 그것을하고
setCookieJar(); $oClient->setHttpClient($oHttpClient); $aResponse = $oClient->call('User.login', array(array( 'login'=>'username', 'password' => 'password', 'remember' => 1 ))); //Log into bugzilla. function getInfoBug(int $bugno) { $aResponse = $oClient->call('Bug.get($bugno)'); //this would just return bug no. $aResponse = $oClient->call('Bug.get(ids => [$bugno], include_fields => [\'id\', \'comments\'])'); //Getting info about bugs. $final = $Client->call('Bug.get(comments($aResponse)'); // return $final; } $bug = 1379; echo $answer = getInfoBug($bug); ?>
을 XML-RPC를 사용하여 Buzilla API에서 함수를 올바르게 호출하고 있습니다. 다른 문제는 다음과 같습니다.
Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in C:\Zend\Apache2\htdocs\Aakash\bugzilla.php on line 6
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='/usr/share/php/libzend-framework-php') in C:\Zend\Apache2\htdocs\Aakash\bugzilla.php on line 6
그래서 실제로 어떤 일이 일어나는지 확실하지 않습니다. PHP에서 초보자 일뿐입니다.