Project

General

Profile

Actions

Feature #14579

closed

error in tslib_fe->getFromCache() with PHP 5

Added by Martin Kutschker over 19 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2005-02-28
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

Here is a isset() missing:

if ($this->TYPO3_CONF_VARS['FE']['debug'] || $this->config['config']['debug'])

Should be:

if ($this->TYPO3_CONF_VARS['FE']['debug'] || isset($this->config['config']['debug']))

(issue imported from #M847)


Files

patch0000847.diff (773 Bytes) patch0000847.diff Administrator Admin, 2008-07-25 11:05
Actions #1

Updated by Ingmar Schlecht over 19 years ago

Ksaper's comment:

This must be something different he means. PHP5 should not give an error
in the first case! Don't fix this or get some more details for me.

(The patch will introduce a bug, because
isset($this->config['config']['debug']) evaluates to true if someone set
"config.debug = 0"!!!)

Actions #2

Updated by Karsten Dambekalns over 19 years ago

Martin, any comment on what Kasper wrote?

Actions #3

Updated by Martin Kutschker over 19 years ago

$this->TYPO3_CONF_VARS['FE']['debug'] will always exist, but $this->config['config']['debug'] not. But Kasper is right, the fix is broken.

It should be:

if ($this->TYPO3_CONF_VARS['FE']['debug'] ||
(isset($this->config['config']['debug']) && $this->config['config']['debug'])
)

Actions #4

Updated by Benni Mack about 16 years ago

Is only a cleanup to avoid a NOTICE, but no error. commited to 4.3-trunk.

Actions

Also available in: Atom PDF