[TYPO3-core] RFC #12466: PHP-5.3 Warning: strlen() expects parameter 1 to be string
Rupert Germann
rupi at gmx.li
Thu Nov 5 16:39:00 CET 2009
FYI: committed to trunk rev 6333
greets
rupert
Rupert Germann schrieb:
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12466
>
> Branches: Trunk
>
> 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
>
>
> Info: PHP 5.2 doesn't throw a warning in this case.
>
>
> greets
> rupert
>
More information about the TYPO3-team-core
mailing list