Actions
Bug #54072
closedIncorrect error message in Redis cache backend
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.',
Actions