Actions
Bug #15795
closedSome notices and warnings in class.t3lib_cs.php (2 things)
Start date:
2006-03-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
1.- Notices: Using the specCharsToASCII() function, we have detected that the initUnicodeData() function has lines like this:
if (is_array($this->caseFolding['utf-8'])) return 1;
And they throw some notices. To avoid them we have used something like:
if (!empty($this->caseFolding['utf-8']) && is_array($this->caseFolding['utf-8']))
Trivial hack.
2.-Warnings: More strange (under our opinion) is that type of loop (found more than once):
for($i=0; strlen($str{$i}); $i++) {
that throws one warning always (we think). Shouldn't it better to change it to something like:
for($i=0; $i < strlen($str); $i++) {
(we haven't been able to find any reason for your loop syntax)
Not critical at all, you know! ;-)
(issue imported from #M2814)
Actions