[TYPO3-core] RFC: #15822: t3lib_beFunc use $this in static methods

Dmitry Dulepov dmitry at typo3.org
Mon Sep 27 14:46:46 CEST 2010


Hi!

Steffen Kamper wrote:
> i thought of the consequence of passing NULL to userFunc as it's called
> there, if someone use the ref in the hook and use it like
> $ref::someMethod or $ref->someMethod. but these functions are called
> inside the core statically, so $ref doesn't exists.

Please, run the attached file and have a look to the output. This test
shows that $this exists inside functions called statically if they do not
have "static" keyword. This what we had before and this is what was broken
when that keyword was added.

-- 
Dmitry Dulepov
TYPO3 core&security team member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100927/31fdbbcc/attachment.htm>


More information about the TYPO3-team-core mailing list