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
Updated by Michael Staatz about 15 years ago
I have had the same Issue on Mac OSX 10.6 with PHP 5.3, MySQL 5.4 Beta and TYPO3 4.3 Beta2.
I solved it with the applied patch!!
Thanks.
Kind regards
Michael Staatz
Actions