CloneSet447


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1162195
libraries/phpxmlrpc/xmlrpc.php
2172252
libraries/phpxmlrpc/xmlrpc.php
Clone Instance
1
Line Count
16
Source Line
2195
Source File
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;
                                                      }
                                              }


Clone Instance
2
Line Count
17
Source Line
2252
Source File
libraries/phpxmlrpc/xmlrpc.php

                                // 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;
                                              }
                                      }


Clone AbstractionParameter Count: 0Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None