Bug #39286

FLOW3's var_dump() still chokes on Doctrine collections

Added by Bastian Waidelich about 3 years ago. Updated almost 3 years ago.

Status:Resolved Start date:2012-07-26
Priority:Should have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:Error
Target version:TYPO3 Flow Base Distribution - 1.1
PHP Version:5.4 Complexity:
Has patch:No Affected Flow version:Git 1.2 (master)

Description

The patch provided with #37481 didn't solve the issue unfortunately.
Now, if you debug entities with properties of type \Doctrine\Common\Collections\Collection the debugger throws an exception because it tries to cast an array to string.
The reason is, that \Doctrine\Common\Util\Debug::export() returns an array or stdClass while we expect a string.


Related issues

related to TYPO3.Flow - Bug #37481: FLOW3's var_dump() chokes on Doctrine collections Resolved 2012-05-25

Associated revisions

Revision fd3eaff0
Added by Bastian Waidelich about 3 years ago

[BUGFIX] FLOW3's var_dump() still chokes on Doctrine collections

Using Doctrine\Common\Util\Debug::export() to render doctrine
collections leads to an exception because our Debugger expects
a string and doctrine's debugger returns an array.
This change fixes this by post processing the result.

Change-Id: I622400ae805193014178c32c786b2eead7292c18
Fixes: #39286
Related: #37481
Releases: 1.1, 1.2

Revision 0aa62e52
Added by Bastian Waidelich about 3 years ago

[BUGFIX] FLOW3's var_dump() still chokes on Doctrine collections

Using Doctrine\Common\Util\Debug::export() to render doctrine
collections leads to an exception because our Debugger expects
a string and doctrine's debugger returns an array.
This change fixes this by post processing the result.

Change-Id: I622400ae805193014178c32c786b2eead7292c18
Fixes: #39286
Related: #37481
Releases: 1.1, 1.2

History

#1 Updated by Bastian Waidelich about 3 years ago

  • Subject changed from FLOW3's var_dump() chokes on Doctrine collections to FLOW3's var_dump() still chokes on Doctrine collections

#2 Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

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

#3 Updated by Robert Lemke about 3 years ago

  • PHP Version set to 5.4
  • Affected Flow version changed from Git 1.0 to Git 1.2 (master)

Just for the record, the exception (cause by a Notice warning) is only thrown with PHP 5.4.x – in PHP 5.3 the array will simply be cast into "Array".

#4 Updated by Gerrit Code Review about 3 years ago

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

#5 Updated by Gerrit Code Review about 3 years ago

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

#6 Updated by Gerrit Code Review about 3 years ago

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

#7 Updated by Gerrit Code Review about 3 years ago

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

#8 Updated by Bastian Waidelich about 3 years ago

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

#9 Updated by Gerrit Code Review about 3 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch FLOW3-1.1 has been pushed to the review server.
It is available at http://review.typo3.org/13341

#10 Updated by Bastian Waidelich almost 3 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF