+ // // + Copyright: (c) 2005, Cake Authors/Developers + // // + Author(s): Michal Tatarynowicz aka Pies + // // + Larry E. Masters aka PhpNut + // // + Kamil Dzielinski aka Brego + // // +------------------------------------------------------------------+ // // + Licensed under The MIT License + // // + Redistributions of files must retain the above copyright notice. + // // + See: http://www.opensource.org/licenses/mit-license.php + // ////////////////////////////////////////////////////////////////////////// /** * with this hack you can use clone() in PHP4 code * use "clone($object)" not "clone $object"! the former works in both PHP4 and PHP5 * * * @filesource * @author Cake Authors/Developers * @copyright Copyright (c) 2005, Cake Authors/Developers * @link https://developers.nextco.com/cake/wiki/Authors Authors/Developers * @package cake * @subpackage cake.libs * @since Cake v 0.2.9 * @version $Revision$ * @modifiedby $LastChangedBy$ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ if (version_compare(phpversion(), '5.0') < 0) { eval(' function clone($object) { return $object; } '); } // needed for old Plog v2 // function old_lib ($name) { old_libs ($name); } function old_libs () { if (count($lib_names = func_get_args())) { foreach ($lib_names as $lib_name) { require (OLD_LIBS.$lib_name.'.php'); } return true; } else { return false; } } ?>