Project

General

Profile

Actions

Bug #21455

closed

PHP-5.3 Warning: strlen() expects parameter 1 to be string, array given

Added by Rupert Germann almost 15 years ago. Updated about 14 years ago.

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

0%

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

Description

Problem:
When running TYPO3 4.3 under PHP 5.3 the error_log is filled with messages like this:
PHP Warning: strlen() expects parameter 1 to be string, array given in C:\xampp\xampp\htdocs\typo3\dummy-4.2.9\typo3\classes\class.typo3ajax.php line 119
reason for this is that json encoded content is handled as array and not as string.

Solution:
use empty() to find out if $content is an empty array or empty string

(issue imported from #M12466)


Files

12466.diff (629 Bytes) 12466.diff Administrator Admin, 2009-11-04 20:18

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21460: Sporadic JS error in loginrefresh.jsClosed2009-11-05

Actions
Actions

Also available in: Atom PDF