[TYPO3-core] RFC #12054: PHP5.3-Warning about strcmp() parameters in view_help.php
Rupert Germann
rupi at gmx.li
Tue Nov 17 17:49:18 CET 2009
FYI: committed to trunk rev 6453
greets
rupert
Stefan Geith schrieb:
> Hi!
>
> This is a SVN patch request.
>
> Type: bugfix
>
> Branches: trunk
>
> BT reference:
> http://bugs.typo3.org/view.php?id=12054
>
> Problem (only with PHP 5.3+):
> WARNING: strcmp() expects parameter 1 to be string in view_help.php on
> line 447
>
> Solution:
> Line 429-447:
> 429: $parts = array();
> 430: $parts[0] = ''; // Reserved for header of table
> ...
> 447: if (!strcmp($parts,'')) unset($parts[0]);
> 448: $output.= implode('<br />',$parts);
>
> Line 447 should be replaced with
> if (!$parts[0]) {
> unset($parts[0]);
> }
>
> Patch attached.
>
> Regards,
> Stefan
>
More information about the TYPO3-team-core
mailing list