Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.979 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 2513 | libraries/phpxmlrpc/xmlrpc.php |
2 | 11 | 914 | libraries/phpxmlrpc/xmlrpcs.php |
| ||||
// if response charset encoding is not known / supported, try to use // the default encoding and parse the xml anyway, but log a warning... if (!in_array($resp_encoding, array( 'UTF-8', 'ISO-8859-1', 'US-ASCII' ))) // the following code might be better for mb_string enabled installs, but // makes the lib about 200% slower... //if (!is_valid_charset($resp_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) { error_log('XML-RPC: xmlrpcmsg::parseResponse: invalid charset encoding of received response: ' . $resp_encoding); $resp_encoding= $GLOBALS['xmlrpc_defencoding']; } $parser= xml_parser_create($resp_encoding); |
| ||||
if (!in_array($req_encoding, array( 'UTF-8', 'ISO-8859-1', 'US-ASCII' ))) // the following code might be better for mb_string enabled installs, but // makes the lib about 200% slower... //if (!is_valid_charset($req_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) { error_log('XML-RPC: xmlrpc_server::parseRequest: invalid charset encoding of received request: ' . $req_encoding); $req_encoding= $GLOBALS['xmlrpc_defencoding']; } /// @BUG this will fail on PHP 5 if charset is not specified in the xml prologue, // the encoding is not UTF8 and there are non-ascii chars in the text... $parser= xml_parser_create($req_encoding); |
| |||
// if response charset encoding is not known / supported, try to use // the default encoding and parse the xml anyway, but log a warning... if (!in_array( [[#variable490907a0]],array( 'UTF-8', 'ISO-8859-1', 'US-ASCII' ))) // the following code might be better for mb_string enabled installs, but // makes the lib about 200% slower... //if (!is_valid_charset($resp_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) //if (!is_valid_charset($req_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII'))) { error_log( [[#variable49090780]] . [[#variable490907a0]]); [[#variable490907a0]]=$GLOBALS['xmlrpc_defencoding']; } /// @BUG this will fail on PHP 5 if charset is not specified in the xml prologue, // the encoding is not UTF8 and there are non-ascii chars in the text... $parser=xml_parser_create( [[#variable490907a0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#490907a0]] | $resp_encoding |
1 | 2 | [[#490907a0]] | $req_encoding |
2 | 1 | [[#49090780]] | 'XML-RPC: xmlrpcmsg::parseResponse: invalid charset encoding of received response: ' |
2 | 2 | [[#49090780]] | 'XML-RPC: xmlrpc_server::parseRequest: invalid charset encoding of received request: ' |