• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug in Xmlrpc

#1
[eluser]Unknown[/eluser]
Bug in Xmlrpc.


My autoload.php:

Code:
$autoload['libraries'] = array('database', 'session');


database present (!!!)


My Xmlrpc_server (/application/views/xmlrpc/xmlrpc_server.php):

Code:
class Xmlrpc_server extends Controller
{

    function index ()
    {
        # parent::Controller(); // no effect!
        
        $this->load->library('xmlrpc');
        $this->load->library('xmlrpcs');

        $config['functions']['EditPage'] = array('function' => 'Xmlrpc_server.editpage');

        $this->xmlrpcs->initialize($config);
        $this->xmlrpcs->serve();
    }
    
    function editpage($request)
    {
        _log($this); // logging to file = print_r()
        
        // other variant logging - result similarly
        // $CI = & get_instance();
        // _log($CI);
        
        
        $response = array( array( 'result' => 0, 'description' => 'edit page' ), 'struct');
        return $this->xmlrpc->send_response($response);
    }
}

Result logging:

Code:
Xmlrpc_server Object
(
    [_ci_scaffolding] =>
    [_ci_scaff_table] =>
    [config] => CI_Config Object ...
    [input] => CI_Input Object ...
    [benchmark] => CI_Benchmark Object ...
    [uri] => CI_URI Object ...
    [output] => CI_Output Object ...
    [lang] => CI_Language Object ...
    [load] => CI_Loader Object ...
    [xmlrpc] => CI_Xmlrpc Object ...
    [xmlrpcs] => CI_Xmlrpcs Object ...
)

Nо database !!!

In CodeIgniter 1.6.1 working correctly.


Messages In This Thread
Bug in Xmlrpc - by El Forum - 05-15-2008, 03:28 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.