CloneSet414


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18240.981class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1182765
libraries/phpxmlrpc/xmlrpc.php
2182794
libraries/phpxmlrpc/xmlrpc.php
Clone Instance
1
Line Count
18
Source Line
2765
Source File
libraries/phpxmlrpc/xmlrpc.php

                /**
                * Add an array of xmlrpcval objects to an xmlrpcval
                * @param array $vals
                * @return int 1 or 0 on failure
                * @access public
                *
                * @todo add some checking for $vals to be an array of xmlrpcvals?
                */
                function addArray($vals) {

                        if ($this->mytype == 0)
                        {
                                $this->mytype =$GLOBALS['xmlrpcTypes']['array'];
                                $this->me['array']=$vals;
                                return 1;
                              }
                        elseif ($this->mytype == 2)
                        {
                                // we're adding to an array here
                                $this->me['array']=  array_merge($this->me['array'], $vals);
                                return 1;
                              }
                        else
                        {
                                error_log('XML-RPC: xmlrpcval::addArray: already initialized as a ['
                                          .                                                            $this->kindOf()
                                          .                                                                              ']');
                                return 0;
                              }
                      }


Clone Instance
2
Line Count
18
Source Line
2794
Source File
libraries/phpxmlrpc/xmlrpc.php

                /**
                * Add an array of named xmlrpcval objects to an xmlrpcval
                * @param array $vals
                * @return int 1 or 0 on failure
                * @access public
                *
                * @todo add some checking for $vals to be an array?
                */
                function addStruct($vals) {

                        if ($this->mytype == 0)
                        {
                                $this->mytype =$GLOBALS['xmlrpcTypes']['struct'];
                                $this->me['struct']=$vals;
                                return 1;
                              }
                        elseif ($this->mytype == 3)
                        {
                                // we're adding to a struct here
                                $this->me['struct']=  array_merge($this->me['struct'], $vals);
                                return 1;
                              }
                        else
                        {
                                error_log('XML-RPC: xmlrpcval::addStruct: already initialized as a ['
                                          .                                                             $this->kindOf()
                                          .                                                                               ']');
                                return 0;
                              }
                      }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
                * Add an array of named xmlrpcval objects to an xmlrpcval
                * @param array $vals
                * @return int 1 or 0 on failure
                * @access public
                *
                * @todo add some checking for $vals to be an array?
                */
/**
                * Add an array of xmlrpcval objects to an xmlrpcval
                * @param array $vals
                * @return int 1 or 0 on failure
                * @access public
                *
                * @todo add some checking for $vals to be an array of xmlrpcvals?
                */
function [[#variable5244e880]]($vals) {
  if ($this->mytype == 0) {
    $this->mytype =$GLOBALS['xmlrpcTypes'][ [[#variable5244e860]]];
    $this->me[ [[#variable5244e860]]]=$vals;
    return 1;
  }
  elseif ($this->mytype == [[#variable5244e7e0]]) {
    // we're adding to a struct here
    // we're adding to an array here
    $this->me[ [[#variable5244e860]]]=array_merge($this->me[ [[#variable5244e860]]],$vals);
    return 1;
  }
  else {
    error_log( [[#variable5244e800]]
              . $this->kindOf()
              . ']');
    return 0;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5244e880]]
addStruct 
12[[#5244e880]]
addArray 
21[[#5244e860]]
'struct' 
22[[#5244e860]]
'array' 
31[[#5244e7e0]]
3 
32[[#5244e7e0]]
2 
41[[#5244e800]]
'XML-RPC: xmlrpcval::addStruct: already initialized as a [' 
42[[#5244e800]]
'XML-RPC: xmlrpcval::addArray: already initialized as a ['