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

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Jan 12 08:43:31 CET 2011


Ernesto Baschny [cron IT] schrieb am 11.01.2011 18:57:

> 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.

Committed to trunk, rev. 10029.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list