[TYPO3-core] FYI: Fixed bug #7029: tslib_cObj uses deprecated function call_user_method
Oliver Hader
oh at inpublica.de
Mon Feb 4 23:19:16 CET 2008
Hi Masi,
Martin Kutschker schrieb:
> Oliver Hader schrieb:
>> Martin Kutschker schrieb:
>>> Oliver Hader schrieb:
>>>> FYI: The following change was committed to SVN
>>>> * TYPO3_4-1 (rev. 3051)
>>>> * Trunk (rev. 3052)
>>>>
>>>> Problem:
>>>> tslib_cObj uses deprecated function call_user_method which should be
>>>> updated to call_user_func_array. If Exceptions are envolved the
>>>> disposal of deprecated function call_user_method causes a blank page.
>>>
>>> BTW, shouldn't the t3lib_div method be used in tslib_content (trunk
>>> only)?
>>
>> Which one do you mean?
>> t3lib_div::callUserFunction($funcName,&$params,&$ref)?
>
> Yes.
&getUserObj($classRef,$checkPrefix='user_') could be used in this case.
In tslib_cObj it behaves similar. The only difference is that there's
still a check required if it's just a normal function without any class
information.
olly
--
Oliver Hader
http://inpublica.de/
More information about the TYPO3-team-core
mailing list