| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 19 | 2 | 2 | 0.990 | class_member_list[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 19 | 89 | libraries/joomla/database/database/mysql.php |
| 2 | 19 | 109 | libraries/joomla/database/database/mysqli.php |
| ||||
/**
* Database object destructor
*
* @return boolean
* @since 1.5
*/
public
function __destruct() {
$return= FALSE;
if (is_resource($this->_resource)) {
$return= mysql_close($this->_resource);
}
return $return;
}
/**
* Test to see if the MySQL connector is available
*
* @static
* @access public
* @return boolean True on success, false otherwise.
*/
public static
function test() {
return (function_exists('mysql_connect'));
}
|
| ||||
/**
* Database object destructor
*
* @return boolean
* @since 1.5
*/
public
function __destruct() {
$return= FALSE;
if (is_resource($this->_resource)) {
$return= mysqli_close($this->_resource);
}
return $return;
}
/**
* Test to see if the MySQLi connector is available
*
* @static
* @access public
* @return boolean True on success, false otherwise.
*/
public static
function test() {
return (function_exists('mysqli_connect'));
}
|
| |||
/**
* Database object destructor
*
* @return boolean
* @since 1.5
*/
public
function __destruct() {
$return=FALSE;
if (is_resource($this->_resource)) {
$return= [[#variable22683580]]($this->_resource);
}
return $return;
}
/**
* Test to see if the MySQL connector is available
*
* @static
* @access public
* @return boolean True on success, false otherwise.
*/
/**
* Test to see if the MySQLi connector is available
*
* @static
* @access public
* @return boolean True on success, false otherwise.
*/
public static
function test() {
return (function_exists( [[#variable41676140]]));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#22683580]] | mysql_close |
| 1 | 2 | [[#22683580]] | mysqli_close |
| 2 | 1 | [[#41676140]] | 'mysql_connect' |
| 2 | 2 | [[#41676140]] | 'mysqli_connect' |