[TYPO3-core] RFC #12054: PHP5.3-Warning about strcmp() parameters in view_help.php

Stefan Geith typo3dev2008.nospam1 at geithware.de
Thu Sep 24 15:53:10 CEST 2009


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 12054.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090924/bf34a17b/attachment.txt 


More information about the TYPO3-team-core mailing list