#15795Some notices and warnings in class.t3lib_cs.php (2 things)
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.