[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] setup/inc functions.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] setup/inc functions.inc.php |
Date: |
Fri, 05 May 2006 08:29:06 +0000 |
CVSROOT: /sources/phpgroupware
Module name: setup
Branch:
Changes by: Sigurd Nes <address@hidden> 06/05/05 08:29:06
Modified files:
inc : functions.inc.php
Log message:
PHP5 compat fix
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/setup/inc/functions.inc.php.diff?tr1=1.51&tr2=1.52&r1=text&r2=text
Patches:
Index: setup/inc/functions.inc.php
diff -u setup/inc/functions.inc.php:1.51 setup/inc/functions.inc.php:1.52
--- setup/inc/functions.inc.php:1.51 Sun May 15 11:59:36 2005
+++ setup/inc/functions.inc.php Fri May 5 08:29:06 2006
@@ -15,7 +15,24 @@
* option) any later version. *
\**************************************************************************/
- /* $Id: functions.inc.php,v 1.51 2005/05/15 11:59:36 skwashd Exp $ */
+ /* $Id: functions.inc.php,v 1.52 2006/05/05 08:29:06 sigurdne Exp $ */
+
+ // PHP5 compat fix
+ if (version_compare(phpversion(), '5.0') < 0)
+ {
+ eval('
+ function clone($obj)
+ {
+ if ( method_exists($obj, "__clone") )
+ {
+ $new_obj = $obj;
+ $new_obj->__clone();
+ return $new_obj;
+ }
+ return $obj;
+ }
+ ');
+ }
if ( file_exists('../header.inc.php') )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] setup/inc functions.inc.php,
Sigurd Nes <=