[TYPO3-core] RFC #11815: Saving translation: strcmp() expects parameter 2 to be string (PHP5.3)
Oliver Hader
oliver at typo3.org
Fri Aug 28 14:35:41 CEST 2009
Hi Steffen,
Steffen Gebert schrieb:
> Hi!
>
> This is a SVN patch request.
>
> Type: bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11815
>
> Branches:
> Trunk, 4_2, 4_1 (?)
>
> Problem:
> Extension manager -> Translation handling -> Save selection.
> results in
> Warning: strcmp() expects parameter 2 to be string, array given in
> t3lib/class.t3lib_befunc.php on line 2888
>
> PHP5.3's strcmp() seems to output a warning, if one parameter is array.
> This wasn't the case in PHP 5.2.
>
>
> Solution:
> test !is_array()
Instead of checking against an array, I'd suggest to use is_string().
olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list