[Typo3-dev] [Good||Silly] idea ???

Martin Poelstra martin at beryllium.net
Tue Mar 8 14:21:45 CET 2005


Hi Bernhard,

(snip)
> then load this file via  "implode('', file($filename))".
> then replace the markers for baseclass and extended class.
> then evalute the script.
(snip)
> So is this a good idea and should we think about a new (possible 
> different) way of doing XCLASS
> extending ???
>
> Or is this "eval" thingy just damn slow and one shouldn't use it ?

This would mean that php-accelerators won't be able to cache the classes, 
which is a major drawback.
Another solution would be to save the 'file' you are trying to eval() to a 
'normal' .php-file (just like the temp_CACHED_-files).
Then you'd only need to write these files during installation of a new 
extension that also extends the class. You can simply point the 
['XCLASS']-variable to this merged-class-file, and all should be OK.

Grtz,
Martin 





More information about the TYPO3-dev mailing list