CloneSet240


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31220.996statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1311206
libraries/phpxmlrpc/xmlrpc.php
2311428
libraries/phpxmlrpc/xmlrpc.php
Clone Instance
1
Line Count
31
Source Line
1206
Source File
libraries/phpxmlrpc/xmlrpc.php

                        // Only create the payload if it was not created previously
                        if (empty($msg->payload))
                        {
                                $msg->createPayload($this->request_charset_encoding);
                              }

                        $payload=  $msg->payload;
                        // Deflate request body and set appropriate request headers
                        if (function_exists('gzdeflate')
                            &&                              ($this->request_compression == 'gzip'
                                                             ||                                      $this->request_compression == 'deflate')) {
                                if ($this->request_compression == 'gzip')
                                {
                                        $a=  @gzencode($payload);
                                        if ($a)
                                        {
                                                $payload=  $a;
                                                $encoding_hdr=  "Content-Encoding: gzip\r\n";
                                              }
                                      }
                                else
                                {
                                        $a=  @gzcompress($payload);
                                        if ($a)
                                        {
                                                $payload=  $a;
                                                $encoding_hdr=  "Content-Encoding: deflate\r\n";
                                              }
                                      }
                              }
                        else {
                                $encoding_hdr=  '';
                              }


Clone Instance
2
Line Count
31
Source Line
1428
Source File
libraries/phpxmlrpc/xmlrpc.php

                        // Only create the payload if it was not created previously
                        if (empty($msg->payload))
                        {
                                $msg->createPayload($this->request_charset_encoding);
                              }

                        // Deflate request body and set appropriate request headers
                        $payload=  $msg->payload;
                        if (function_exists('gzdeflate')
                            &&                              ($this->request_compression == 'gzip'
                                                             ||                                      $this->request_compression == 'deflate')) {
                                if ($this->request_compression == 'gzip')
                                {
                                        $a=  @gzencode($payload);
                                        if ($a)
                                        {
                                                $payload=  $a;
                                                $encoding_hdr=  'Content-Encoding: gzip';
                                              }
                                      }
                                else
                                {
                                        $a=  @gzcompress($payload);
                                        if ($a)
                                        {
                                                $payload=  $a;
                                                $encoding_hdr=  'Content-Encoding: deflate';
                                              }
                                      }
                              }
                        else {
                                $encoding_hdr=  '';
                              }


Clone AbstractionParameter Count: 2Parameter Bindings

// Only create the payload if it was not created previously
if (empty($msg->payload)) {
  $msg->createPayload($this->request_charset_encoding);
}
// Deflate request body and set appropriate request headers
$payload=$msg->payload;
// Deflate request body and set appropriate request headers
if (function_exists('gzdeflate')
    && ($this->request_compression == 'gzip'
        || $this->request_compression == 'deflate')) {
  if ($this->request_compression == 'gzip') {
    $a=@gzencode($payload);
    if ($a) {
      $payload=$a;
      $encoding_hdr= [[#variable5226ec40]];
    }
  }
  else {
    $a=@gzcompress($payload);
    if ($a) {
      $payload=$a;
      $encoding_hdr= [[#variable5226ec60]];
    }
  }
}
else {
  $encoding_hdr='';
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5226ec40]]
"Content-Encoding: gzip\r\n" 
12[[#5226ec40]]
'Content-Encoding: gzip' 
21[[#5226ec60]]
"Content-Encoding: deflate\r\n" 
22[[#5226ec60]]
'Content-Encoding: deflate'