title: Strange PHP 5.3 issue with date diff calculating difference in days
body: <p>I am experiencing a rather strange problem using PHP 5.3's date diff function to calculate the difference in days between two dates.  Below is my code:</p>
  
  <pre><code>$currentDate = new DateTime(); // (today's date is 2012-1-27)
  $startDate = new DateTime('2012-04-01');
  
  $diff = $startDate-&gt;diff($currentDate);
  
  $daysBefore = $diff-&gt;d;
  
  echo $daysBefore; 
  </code></pre>
  
  <p>The above code displays 4 as the value of the $daysBefore variable.</p>
  
  <p>Why is PHP displaying a difference of 4 days between the dates 27th Jan 2012 and 1st April 2012, when clearly there are many more days between these dates.</p>
  
  <p>Am I doing something wrong?</p>