PHP. var_dump, pointers and recursion. Why xdebug may be useful
This situation is quite rare, but still occurs. There is a certain variable, and we need look at its structure.
We do the following:
var_dump($fields);
and get into the mess looking on the following message in our log of webserver:
[Thu Feb 23 16:21:07 2012] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 78045652 bytes) in /web/site1/includes/theme.inc on line 1080, referer: http://localhost/site1/
