<p>I have a very strange problem, when I try to <code>var_dump</code> (or <code>print_r</code>) a Doctrine Object, my Apache responses with an empty blank page (200 OK header). I can <code>var_dump</code> a normal php var like:</p>

<pre><code>$dummy = array("a" =&gt; 1, "b" =&gt;2);
</code></pre>

<p>And it works fine. But I can't with any object from any Doctrine class, (like a result from <code>$connection-&gt;query()</code>, or an instance of a class from my object model with Doctrine).</p>

<p>Anybody knows why this happens?</p>

I've had that sometimes when trying to
```
print_r()
```
a self-referencing object - it gets into a loop and runs out of memory.  Possibly that's what's happening to you.
Try increasing the memory limit (
```
ini_set('memory_limit', '256M');
```
) and see if that fixes it.
Edit:   I don't think there's an actual fix for this - it's PHP's internal
```
var_dump
```
/
```
print_r
```
that don't limit depth on recursion (or don't do it properly, at least).  If you install the
XDebug
extension, this can replace the built-in
```
var_dump
```
with a version that handles recursion much better.