repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-date
/
bug46874.php
blob
41c8a5adde62898b25fe7878c947345ba5da5722
1
<
?php
2
$dp
=
new
DatePeriod
(
'R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M'
);
3
4
foreach
(
$dp
as
$date
) {
5
echo
$date
->
format
(
"Y-m-d H:i:s
\n
"
);
6
}
7
8
echo
"
\n
"
;
9
10
// this should repeat the same range
11
foreach
(
$dp
as
$date
) {
12
echo
$date
->
format
(
"Y-m-d H:i:s
\n
"
);
13
}
14
?
>