"TYPO3 4.0.1: typo3_src-4.0.1/t3lib/compat_php5.php Source File", "datetime" => "Sat Dec 2 19:22:20 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

compat_php5.php

00001 <?php
00015 eval('
00016     function clone($object)
00017     {
00018         // Sanity check
00019         if (!is_object($object)) {
00020             user_error(\'clone() __clone method called on non-object\', E_USER_WARNING);
00021             return;
00022         }
00023 
00024         // Use serialize/unserialize trick to deep copy the object
00025         $object = unserialize(serialize($object));
00026 
00027         // If there is a __clone method call it on the "new" class
00028         if (method_exists($object, \'__clone\')) {
00029             $object->__clone();
00030         }
00031 
00032         return $object;
00033     }
00034 ');
00035 
00036 
00037 ?>