Project

General

Profile

Actions

Bug #15795

closed

Some notices and warnings in class.t3lib_cs.php (2 things)

Added by Eloy Lafuente about 18 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #22398: Nagging error notices in class.t3lib_div.php / $_SERVER assumptions.Closed2010-04-07

Actions
Related to TYPO3 Core - Bug #15025: PHP NoticesClosedChris topher2005-10-11

Actions
Actions

Also available in: Atom PDF