Project

General

Profile

Actions

Bug #54072

closed

Incorrect error message in Redis cache backend

Added by Jan Slusarczyk over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-11-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

cache.lifetime is being checked if it is integer, but the following exception:

Oops, an error occurred!
The specified lifetime is of type "string" but a string or NULL is expected.

Corresponding lines of class.t3lib_cache_backend_redisbackend.php:

[line 347] $lifetimeIsNull = is_null($lifetime);
[line 348] $lifetimeIsInteger = is_integer($lifetime);
[line 349]
[line 350] if (!$lifetimeIsNull && !$lifetimeIsInteger) {
[line 351] throw new \InvalidArgumentException(
[line 352] 'The specified lifetime is of type "' . gettype($lifetime) . '" but a string or NULL is expected.',

It should be:

[line 352] 'The specified lifetime is of type "' . gettype($lifetime) . '" but a integer or NULL is expected.',


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #54071: cache.lifetime value returned as a string - error in Redis cache backendClosed2013-11-29

Actions
Actions #1

Updated by Georg Ringer over 9 years ago

  • Status changed from New to Resolved

current code:

if (!is_integer($lifetime)) {
            throw new \InvalidArgumentException('The specified lifetime is of type "' . gettype($lifetime) . '" but an integer or NULL is expected.', 1279488008);
        }

so it is fine now

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF