[BUGFIX] Show properties of stdClass object in <f:debug> 50/32150/2
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:18:51 +0000 (20:18 +0200)
commitb8e7f7a0970f33c2b3911312e627421304451208
treef46680618b4b3874ba8ebbcad6f5dd13bc2b7128
parent4a820fa2bf27ebc9b17cd84bab26d2ebb314fff8
[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/32150
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