[TYPO3-core] RFC: Bug #0006663: Unserialized objects not debugged properly
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Wed Nov 7 09:41:59 CET 2007
Francois Suter schrieb:
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=6663
>
> Branches:
> Trunk
>
> Problem:
> Unserialized objects with no class definition are not considered proper
> objects by PHP 5.2.x. t3lib_div::view_array() thus fails to catch them
> with the is_object() test. It then moves on to cast them to string,
> which causes a fatal error (as referenced previously in bug
> http://bugs.typo3.org/view.php?id=6529).
I wouldn't use the __String() method as a class may choose to render it's
"content" (state) as string. Let's stick to the class name. *
And maybe you can remove the the hsc() from this code:
htmlspecialchars("EMPTY!").
Masi
* or start with class name and append __String().
More information about the TYPO3-team-core
mailing list