[TYPO3-core] RFC #10816: tslib_content calls deprecated function makeInstanceClassName

Franz Koch typo.removeformessage at fx-graefix.de
Wed May 20 11:30:56 CEST 2009


Hi,
>> as the autoloader is now committed and my logfile keeps growing and 
>> growing I just created a new patch that will apply to the current SVN 
>> version. I also took care of the libs mentioned in the RFC.
>>
>> Would be nice if these fixes could already be in for alpha3 coming 
>> today or tomorrow?
> 
> forgot to fix the var names for the error messages. So attached the new 
> version of the patch.

after some tests I noticed that t3lib_div::makeInstance is not checking 
whether a class exists or not before calling 'new $className' or using 
the reflectionClass. Thus a php error is thrown if there is somewhere 
defined a userFunction in TS that doesn't exists. I think 
t3lib_div::makeInstance should catch that. I'm already working on it and 
preparing a patch - but I'm not sure where to log this - in syslog or 
just via $GLOBALS['TT']->setTSlogMessage('Class "' . $className . '" did 
not exist',3);

Any ideas on that?
-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------


More information about the TYPO3-team-core mailing list