[TYPO3-core] RFC: #16825: Fatal error in lang.php

Jigal van Hemert jigal at xs4all.nl
Thu Dec 23 12:46:19 CET 2010


Hi,

Thanks for the patch!

On 23-12-2010 9:58, Georg Ringer wrote:
> Problem:
> because of type hinting an fatal error can occur in EXT:lang/lang.php
>
> problem is inside t3lib_div::readLLfile (called by $this->readLLfile)
> which can give back either a filled array, an empty array or FALSE if
> there was an error.

Problem here is that count() can return non-zero values in many cases: 
"If var is not an array or an object with implemented Countable 
interface, 1 will be returned. There is one exception, if var is NULL, 0 
will be returned. "

Committed as no-brainer to
trunk in rev: 9884
4-4 in rev: 9885
4-3 in rev: 9886
4-2 in rev: 9887

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-team-core mailing list