1--TEST--
2DatePeriod::EXCLUDE_START_DATE|DatePeriod::INCLUDE_END_DATE
3--FILE--
4<?php
5date_default_timezone_set('UTC');
6$start = new DateTime('2010-06-07');
7$end = new DateTime('2010-06-10');
8$interval = new DateInterval('P1D');
9
10$dp = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE | DatePeriod::INCLUDE_END_DATE);
11foreach ($dp as $day) {
12    echo $day->format('Y-m-d') . "\n";
13}
14?>
15--EXPECT--
162010-06-08
172010-06-09
182010-06-10
19
20