[TYPO3-core] FYI72: #9925: Initialization of new caching framework breaks some eID scripts

Dmitry Dulepov dmitry at typo3.org
Fri Dec 12 10:46:22 CET 2008


Hi!

This is SVN patch request.

Type: bug

Branches: trunk

BT reference: http://bugs.typo3.org/view.php?id=9925

Problem: Some eID scripts initialize TYPO3 by instantiating tslib_fe and all required classes. This works fine in TYPO3 4.1.x and TYPO3 4.2.x, however it is broken in TYPO3 4.3.0 alpha1 because of the new caching framework. The code to initialize this framework is located in the typo3/sysext/cms/tslib/index_ts.php and it is not executed when eID scripts run. Therefore TYPO3 core in version 4.3 behaves differently than before (it is incompatible with previous versions).

Solution: move cache initialization inside tslib_fe, where it partially exists already.

Notes: using t3lib_div::requireOnce() ensure that XCLASSing is still possible and necessary variables are available for the caching framework.

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/how_will_i_fix_bugs_in_extensions_from_now_on/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9925.diff
Type: text/x-diff
Size: 4916 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081212/4c0c8344/attachment.diff 


More information about the TYPO3-team-core mailing list