added clone function for php4, use as $db = clone($this->db);

This commit is contained in:
Ralf Becker 2004-10-19 14:54:57 +00:00
parent d582d8b68f
commit 1b53a1ce6d

View File

@ -894,9 +894,7 @@
{
if(floor(phpversion()) > 4)
{
// $b = $a->__clone();
// $b = clone $a;
$b = $a;
$b = clone($a);
}
else
{
@ -1243,4 +1241,15 @@
_check_script_tag($GLOBALS[$where],$where);
}
}
if(floor(phpversion()) <= 4)
{
/**
* clone function for php4, use as $new_obj = clone($old_obj);
*/
function clone($obj)
{
return $obj;
}
}
?>