[TYPO3-mvc] print_r, t3lib_utility_Debug::debug on an object produces memory leak in Extbase 1.3.0

Peter Niederlag typo3-list at niekom.de
Fri Feb 11 11:27:28 CET 2011


Hello,

first of all, thx for the question.

Am 10.02.2011 18:52, schrieb Simon Schaufelberger:
> ok, and are there any solutions/workarounds/...?

- don't debug "large/recursive objects", do it iterative like 
'debug(get_class($object))' and then 
'debug(get_class($object->getAnother()))' or similar

- implement some kind of max_nexting_level(?)

- use xdebug (or other) for native PHP-debugging

xdebug replaces var_dump() in a more smart way
http://xdebug.org/docs/display

If you can install xdebug, it is quite convenient.

hth and Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list