Bug #41046

Debugger crashes when coming upon Closure variable

Added by Adrian Föder about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
Category:
Error
Start date:
2012-09-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.4
Has patch:
Yes
Complexity:
easy

Description

consider just

\TYPO3\FLOW3\var_dump(function(){});

// or 

TYPO3\FLOW3\Error\Debugger::renderDump(function(){}, 0);

This gives the error

Closure object cannot have properties

because of this line:

if ($object instanceof \TYPO3\FLOW3\Object\Proxy\ProxyInterface || (isset($object->__IS_PROXY__) && $object->__IS_PROXY__ === TRUE)) {

in Debugger.php on line 220 ($object is the closure in this case, and even trying to access the IS_PROXY thing leads to the exception.

I'm already working on a patch.

Also available in: Atom PDF