mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
41 lines
1.5 KiB
PHP
41 lines
1.5 KiB
PHP
|
<?PHP
|
||
|
//////////////////////////////////////////////////////////////////////////
|
||
|
// + $Id$
|
||
|
// +------------------------------------------------------------------+ //
|
||
|
// + Cake <http://sputnik.pl/cake> + //
|
||
|
// + Copyright: (c) 2005 Michal Tatarynowicz + //
|
||
|
// + + //
|
||
|
// + Author(s): (c) 2005 Michal Tatarynowicz <tatarynowicz@gmail.com> + //
|
||
|
// + + //
|
||
|
// +------------------------------------------------------------------+ //
|
||
|
// + Licensed under the Public Domain Licence + //
|
||
|
// +------------------------------------------------------------------+ //
|
||
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
/**
|
||
|
* 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
|
||
|
* @modifiedby $LastChangedBy$
|
||
|
* @lastmodified $Date$
|
||
|
* @author Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||
|
* @copyright Copyright (c) 2005, Michal Tatarynowicz <tatarynowicz@gmail.com>
|
||
|
* @package cake
|
||
|
* @subpackage cake.libs
|
||
|
* @since Cake v 0.2.9
|
||
|
* @version $Revision$
|
||
|
* @license Public_Domain
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
if (version_compare(phpversion(), '5.0') < 0) {
|
||
|
eval('
|
||
|
function clone($object) {
|
||
|
return $object;
|
||
|
}
|
||
|
');
|
||
|
}
|
||
|
|
||
|
?>
|