[TYPO3-core] Patch: tslib_pagegen / clone()

Dmitry Dulepov dima at spamcop.net
Thu Jan 19 16:17:19 CET 2006


Hi!

René Fritz wrote:
> Created t3lib/compat.php which is included in config_default.php.

I wonder why do you need eval() there? Is it because of PHP5? PHP4
perfectly works without it. This works in PHP4 and looks better I think:

------------------
if (version_compare(phpversion(), '5.0') < 0) {
	function clone($object) {
		return $object;
	}
}
------------------


Dmitry.



More information about the TYPO3-team-core mailing list