[TYPO3-core] RFC: Bugfix #7445: Malformed translated locallang causes PHP crash

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Feb 17 20:33:14 CET 2008


Francois Suter schrieb:
> 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.

Fine with me. +1 after reading. Will help cleaing up cruft during 
development ;-)

Masi

PS: I know it's a bi late now, but - please - can we change all those 
die's with exceptions?


More information about the TYPO3-team-core mailing list