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

René Fritz rene at typo3.org
Thu Jan 19 16:23:32 CET 2006


> 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;
> 	}
> }
> ------------------

I have nothing against it but does it work in PHP5?
The PHP5 parser might trow an error.

I remeber that a grabbed the code from somewhere...

René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list