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.

#1

Updated by Gerrit Code Review about 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14708

#2

Updated by Gerrit Code Review about 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14708

#3

Updated by Adrian Föder about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF