[TYPO3-core] RFC #16970: Backwards compatibility in PHP_SCRIPT and accessing $this-> methods

JoH asenau info at cybercraft.de
Tue Jan 11 19:04:11 CET 2011


Am 11.01.2011 18:57, schrieb Ernesto Baschny [cron IT]:
> Hi,
>
> This is a SVN patch request.
>
> Type: Bugfix (backwards compatibility)
>
> BT reference: http://bugs.typo3.org/view.php?id=16970
>
> Branches: trunk
>
> Problem:
> Older sites might include PHP_SCRIPT cObject accessing cObject methods
> and properties through $this, expecting the current context to be "cObject".
>
> Since the PHP_SCRIPT object was moved to its own class, the old methods
> will stop working (e.g. older "languageMenu.php" or stuff like
> http://www.sk-typo3.de/awstats-Zaehlen-von-Dateidownloads.55.0.html).
>
> Solution:
> Solution is to add a __call() and __get() catch-all to PHP_SCRIPT
> intercepting those calls and passing them to $this->cObj, while making a
> note of it in deprecation log.

+1 by reading.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list