print_r recursion/depth problem
| From: | jef at eyeintegrated dot com | Date: | Tue, 17 Jun 2003 21:02:39 +0000 |
| Subject: | print_r recursion/depth problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151900@lists.php.net to get a copy of this message | ||
We are developing a site with the binarycloud platform,
which is completely object oriented with (sometimes)
large (deep) trees of objects.
Sometimes in the place where we need it, deep down, we
try to use print_r on the object tree, or subtree, and
the machine load average goes to the moon, and before
Apache can kill the child, everything locks, and a hard
reset is necessary.
Has anybody on this list ever tried to impliment a print_r
with an argument that specifies maximum depth of array
recursion? This would be very useful in normal debugging
in any case, as most data structures don't go as deep
as ones we are using.
Anybody interested in this besides me?
_justin
--
Justin Farnsworth - Technical Director
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722