[TYPO3-core] RFC: Bugfix #7445: Malformed translated locallang causes PHP crash
Francois Suter
fsuter at cobweb.ch
Sun Feb 17 10:01:12 CET 2008
REMINDER #1
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=7445
>
> Branches:
> 4.1, 4.2 and Trunk
>
> Problem:
> In t3lib_div::readLLXMLfile() errors in the locallang file are properly
> caught for the default language (i.e. an error message is displayed
> pointing to the invalid file), but not for translations (PHP fatal error
> occurs).
>
> Solution:
> The attached patch copies for the translated file the same
> error-handling mechanism as for the default language file.
>
> Notes:
> To reproduce that bug, you can simply replace a locallang file in
> typo3conf/l10n by an empty and see what happens. For example replace
> typo3conf/l10n/lang/[language_key].locallang_general.xml and try to view
> the page tree in the BE by going to Web > Page.
>
> I have made a different patch for 4.1 and 4.2, due to changes in
> t3lib_div::readLLXMLfile(). The patch for 4.2 applies fine to trunk.
>
> Cheers
>
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-team-core
mailing list