xmlrpcs |
|||
|---|---|---|---|
| Date: | 08/22/2007 | Severity: | Critical |
| Status: | Bogus | Reporter: | Alisson Patrício |
| Version: | 1.5.4 | ||
| Keywords: | Libraries, XML-RPC Class | ||
Description
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at F:\www\public-html\codeigniter\libraries\Xmlrpcs.php:119)
Filename: errors/error_404.php
Line Number: 1
Code Sample
// server
function server()
{
parent::Controller();
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
$config['functions']['example'] = array('function' => 'server.example');
$this->xmlrpcs->initialize($config);
$this->xmlrpcs->serve();
}
function example($request)
{
$response = array(array('nickname' => array('Smitty','string'),
'userid' => array('99','string'),
'url' => array('http://yoursite.com','string'),
'email' => array('jsmith@yoursite.com','string'),
'lastname' => array('Smith','string'),
'firstname' => array('John','string')
),
'struct');
return $this->xmlrpc->send_response($response);
}
// client
function index ()
{
$this->load->library('xmlrpc');
//echo "doing XML-RPC call to example
";
$this->xmlrpc->set_debug(TRUE);
$this->xmlrpc->server('http://localhost/api', 80);
$this->xmlrpc->method('example');
$request = array('How is it going?');
$this->xmlrpc->request($request);
if ( ! $this->xmlrpc->send_request())
{
echo $this->xmlrpc->display_error();
} else {
echo '';
print_r($this->xmlrpc->display_response());
echo '</pre>';
}
}
Expected Result
Actual Result
Comment on Bug Report
| Posted by: Derek Allard on 22 August 2007 9:38pm | |
|
|
Could you start a forum thread for this bug? I don’t understand what you are reporting, and Headers already sent is a common error. I’m marking this as “bogus” for now, but I will happily re-open it, if after some discussion it proves to be a bug. |
