php date_diff issue. getting blank result
<p>I am running php 5.3.5 on my local wamp setup. I am running a simple code.</p>

<pre><code>echo "&lt;br/&gt;DEBUGGING";
echo "&lt;br/&gt;===========";
echo "&lt;br/&gt;Date: ".$date;
echo "&lt;br/&gt;Lead Days: ".$lead_days;
echo "&lt;br/&gt;Date diff: ".var_dump(date_diff((int)$date, (int)$lead_days))." difference";
</code></pre>

<p>But the output is:</p>

<pre><code>DEBUGGING
===========
Date: 2012-08-31
Lead Days: 2012-09-05

boolean false


Date diff: difference
</code></pre>

<p>date_diff seems to return false. I have tried it without var_dump and without int casting, but it always comes blank, however it works if I upload to my webserver. Any ideas what is wrong here? </p>
