range() issuing a warning when date_diff is used
<p>The following script issues a
'Warning: range() [function.range]: step exceeds the specified range in'
only when the date_diff function is called. Does anyone know why?</p>

<pre><code>&lt;?php

$array  =   array(
    "Interno",
    "id"
);

$step = count($array) - 1;

foreach (range(0, $step) as $number) {
    echo '&lt;p&gt;'.$number.'&lt;/p&gt;';
}

$datetime1 = new DateTime('2010-08-2');
$datetime2 = new DateTime('2009-07-30');

$interval = date_diff($datetime1,$datetime2);
?&gt;
</code></pre>
