Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 0 | 1.000 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 2195 | libraries/phpxmlrpc/xmlrpc.php |
2 | 17 | 2252 | libraries/phpxmlrpc/xmlrpc.php |
| ||||
// Look for CR/LF or simple LF as line separator, // (even though it is not valid http) $pos= strpos($data,"\r\n\r\n"); if ($pos || is_int($pos)) { $bd= $pos+4; } else { $pos= strpos($data,"\n\n"); if ($pos || is_int($pos)) { $bd= $pos+2; } else { // No separation between response headers and body: fault? $bd= 0; } } |
| ||||
// be tolerant to usage of \n instead of \r\n to separate headers and data // (even though it is not valid http) $pos= strpos($data,"\r\n\r\n"); if ($pos || is_int($pos)) { $bd= $pos+4; } else { $pos= strpos($data,"\n\n"); if ($pos || is_int($pos)) { $bd= $pos+2; } else { // No separation between response headers and body: fault? // we could take some action here instead of going on... $bd= 0; } } |
| |||
// be tolerant to usage of \n instead of \r\n to separate headers and data // Look for CR/LF or simple LF as line separator, // (even though it is not valid http) $pos=strpos($data,"\r\n\r\n"); if ($pos || is_int($pos)) { $bd=$pos+4; } else { $pos=strpos($data,"\n\n"); if ($pos || is_int($pos)) { $bd=$pos+2; } else { // No separation between response headers and body: fault? // we could take some action here instead of going on... $bd=0; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |