[TYPO3-core] RFC #9266: Bug: strcmp() with array as parameter in t3lib_div::linkThisScript() produces warnings with PHP 5.3

Niels Pardon mail at niels-pardon.de
Sun Aug 31 18:53:41 CEST 2008


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=9266

Branches:
TYPO3_4-1, TYPO3_4-2 & trunk

Problem:
E.g. in the list module are GET parameters which are arrays. This leads
to the fact that strcmp() in t3lib_div::linkThisScript() gets called
with an array as parameter which leads to a warning with PHP 5.3.

Solution:
The strcmp() just checks whether the GET parameter has an empty string
value. Let's do it with a simple !== '' and the warnings are gone.

Greets,

Niels
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 9266.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080831/8ad82d4f/attachment.txt 


More information about the TYPO3-team-core mailing list