[TYPO3-core] RFC #12054: PHP5.3-Warning about strcmp() parameters in view_help.php
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Mon Oct 19 09:57:14 CEST 2009
Reminder.
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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
>
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
More information about the TYPO3-team-core
mailing list