Welcome Guest, Not a member yet? Register   Sign In
Oversight in xmlrpcs causes huge memory usage
#1

[eluser]chriskl[/eluser]
In the XMLRPC server library, a debug check is missing on this line:

$plist .= "$i - " . print_r(get_object_vars($parser_object->xh[$parser]['params'][$i]), TRUE). ";\n";

This causes it to unnecessarily build up gigantic strings during very large XMLRPC requests. It's necessary to change it to:

if ($this->debug === TRUE)
{
$plist .= "$i - " . print_r(get_object_vars($parser_object->xh[$parser]['params'][$i]), TRUE). ";\n";
}

Cheers,

Chris


Messages In This Thread
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-23-2007, 02:55 AM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-23-2007, 05:57 AM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-23-2007, 06:03 AM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-23-2007, 06:08 AM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-23-2007, 01:43 PM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-24-2007, 07:27 PM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-24-2007, 07:28 PM
Oversight in xmlrpcs causes huge memory usage - by El Forum - 10-24-2007, 09:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB