Project

General

Profile

Actions

Bug #23603

closed

Uninitialized variables in t3lib

Added by Oliver Klee over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-09-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are some uninitialized variables in some t3lib classes for several reasons:

- variable doesn't exist at all > replace with sane default value
wrong variable > replace with correct variable
typo -> fix

In addition, I've removed some commented-out code and dropped one useless self-assignment.

All these warnings have been detected by my IDE.
(issue imported from #M15799)


Files

t3lib_undefinded_trunk_and_44.diff (13.9 KB) t3lib_undefinded_trunk_and_44.diff Administrator Admin, 2010-09-24 18:32
t3lib_undefinded_43.diff (11.1 KB) t3lib_undefinded_43.diff Administrator Admin, 2010-09-24 18:32
15799_v2_trunk.diff (12.8 KB) 15799_v2_trunk.diff Administrator Admin, 2010-09-24 20:09
15799_v2_44.diff (12.3 KB) 15799_v2_44.diff Administrator Admin, 2010-09-24 20:09
15799_v2_43.diff (10.4 KB) 15799_v2_43.diff Administrator Admin, 2010-09-24 20:09
Actions #1

Updated by Georg Ringer over 13 years ago

does "if (TRUE) {" really make sense?

Actions #2

Updated by Oliver Klee over 13 years ago

I wanted to keep the changeset as small as possible. I propose we drop the condition (causing all the code inside the condition to change its indention) in a separate follow-up patch.

Actions #3

Updated by Susanne Moog over 13 years ago

rev 9100, rev 9102, rev 9103 trunk

Actions #4

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF