Project

General

Profile

Actions

Bug #14985

closed

Backend module List: TYPO3 Pages dumps PHP warnings, no array found

Added by Florian Schaeffer about 19 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2005-09-21
Due date:
% Done:

0%

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

Description

When using the backend module List: TYPO3 Pages I get some PHP warnings, stating that the value passed to the function formatCHash is not an array.

Line 299, 367, 387 the function is called:

$cHash = count(unserialize($row2["cHashParams"])) ? $this->formatCHash(unserialize($row2["cHashParams"])) : "";

When using is_array instead of count the warning disappear.

Used versions:

TYPO3 3.8.0
Indexed Search 2.1.3
PHP 4.3.1
OS: SuSe Linux 9.1

I assume , there was a change in the way how count treats empty arrays or unserialize working on empty arrays.

I checkd some constellations and found out that:

Using an empty array makes no difference using count or is_array. If the values is stored as serialized array in MySQL there no problem either.

Only when using count on an NULL-value (so to say no Hash was ever generated or stored in the DB) the count returns 1. Is_array returns 0 so using is_array would be save in any case...
(issue imported from #M1473)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #22306: Backend Module produces php errorsClosed2010-03-22

Actions
Actions #1

Updated by Dmitry Dulepov over 14 years ago

See #13876 for the fix

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF