[BUGFIX] Show properties of stdClass object in <f:debug> 08/32108/5
authorChristian Weiske <christian.weiske@netresearch.de>
Tue, 12 Aug 2014 12:13:20 +0000 (14:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 13 Aug 2014 18:10:06 +0000 (20:10 +0200)
commitd3d26830973ba2d483a7a5a31d60d816a2aaf35c
treead7d641612282c5fc8c796ab32f50ac0467477e5
parent0c50eb38ac143adc0606c239b9b19564bf1a226b
[BUGFIX] Show properties of stdClass object in <f:debug>

Using fluid's <f:debug> to get dumps of json_decode()d objects
does not work currently. The DebuggerUtility shows only properties
obtainable via ReflectionClass, which does not work for stdClass objects.

The patch introduces special handling of stdClass objects, using the
properties that actually exist in the object.

Change-Id: I3845178f6defdbceae4b867f45e5080f23443766
Fixes: #60912
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/32108
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php
typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php