[TYPO3-core] RFC #12054: PHP5.3-Warning about strcmp() parameters in view_help.php
Rupert Germann
rupi at gmx.li
Wed Nov 4 21:46:35 CET 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12054.diff
Type: text/x-diff
Size: 357 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091104/5b9749d8/attachment.diff>
More information about the TYPO3-team-core
mailing list