Actions
Bug #21455
closedPHP-5.3 Warning: strlen() expects parameter 1 to be string, array given
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
Actions