[TYPO3-core] RFC #12054: PHP5.3-Warning about strcmp() parameters in view_help.php
Rupert Germann
rupi at gmx.li
Wed Nov 4 21:49:00 CET 2009
oops, already in the list.
"pending" tag was missing in BT
greets
rupert
Rupert Germann schrieb:
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12054
>
> Branches: Trunk
>
> Problem:
> When running TYPO3 4.3 under PHP 5.3 a warning is displayed when viewing
> the "full table description" in the help pop-up.
>
> Solution:
> replace !strcmp(array(),'') with empty(array[0])
>
> Info:
> on PHP 5.2 strcmp(array(1,2),'') or strcmp(array(),'') will always
> return the integer 5.
> on PHP 5.3 a warning is showing up when strcmp() is called with an array.
> The changed line only removes 1 empty linebreak in case a table has no
> description. According to my tests this did not happen ever under php
> 5.2 - perhaps under older PHP versions.
>
>
> greets
> rupert
>
More information about the TYPO3-team-core
mailing list