Part of the EllisLab Network
   
 
XML-RPC request function bug
Posted: 03 March 2007 11:26 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  310
Joined  08-16-2006

I have discovered the cause of the bug described in this topic.

The data property in the function request() of class CI_Xmlrpc is not being predefined for each request. As a result it can contain elements from previous requests. This happen to me and caused tremendous problems. The solution was to set the initial value of the data property to null.

function request($incoming)
{
    
if ( ! is_array($incoming))
    
{
        
// Send Error
    
}

    $this
->data = null;
    foreach(
$incoming as $key => $value)
    
{
        $this
->data[$key] = $this->values_parsing($value);
    
}
}

This may not be the most efficient solution, but my project required a quick solution and this serves the purpose.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66430 Total Logged-in Users: 31
Total Topics: 84795 Total Anonymous Users: 7
Total Replies: 455068 Total Guests: 249
Total Posts: 539863    
Members ( View Memberlist )
Newest Members:  Dylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeerfedeghe