Project

General

Profile

Actions

Bug #19607

closed

PHP Warning: Invalid argument supplied for foreach() in t3lib_cache_backend_db.php

Added by Martin Holtz over 15 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-11-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

if the cache is empty i get an php warning.

Afaik that would be even with an disabled warning output an performance issue.

And i think, even with enabled php warning, that should not happen in the core?

Warning: Invalid argument supplied for foreach() in /typo3_trunk/t3lib/cache/backend/class.t3lib_cache_backend_db.php on line 156

Warning: Invalid argument supplied for foreach() in /typo3_trunk/t3lib/cache/backend/class.t3lib_cache_backend_db.php on line 156

(issue imported from #M9787)


Files

9787.diff (550 Bytes) 9787.diff Administrator Admin, 2008-11-13 11:56
Actions #1

Updated by Dmitry Dulepov over 15 years ago

This warning will happen only if you have SQL error in the db cache (for example, you forgot to update cache tables to the new format. $GLOBALS['TYPO3_DB']->exec_SELECTgetRows() returns non–array only and only if there was SQL error. If nothing was found it returns empty array.

Actions

Also available in: Atom PDF