summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-04-10 08:18:10 (GMT)
committerAnatoliy Belsky <ab@php.net>2012-04-10 10:20:40 (GMT)
commitfd68d5b13929ff4b2492a024eeaf14d07b3e5dad (patch)
treeb7995a6060b1de07af2f44072ecaecf1eb3edc70
parent882dca647a42c974102cfd1c75818764a199998f (diff)
downloadphp-fd68d5b13929ff4b2492a024eeaf14d07b3e5dad.tar.gz
Fix bug #61609 Test ext\date\tests\bug52062.phpt fails
As expressed in the comments http://de.php.net/manual/en/datetime.gettimestamp.php this is the generic 32 bit timestamp issue
-rw-r--r--ext/date/tests/bug52062.phpt8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/date/tests/bug52062.phpt b/ext/date/tests/bug52062.phpt
index d779524..1d81437 100644
--- a/ext/date/tests/bug52062.phpt
+++ b/ext/date/tests/bug52062.phpt
@@ -13,6 +13,7 @@ date.timezone=UTC
$d = new DateTime('@100000000000');
var_dump($d->format('Y-m-d H:i:s U'));
var_dump($d->getTimestamp());
+var_dump($d->format('U'));
$d->setTimestamp(100000000000);
var_dump($d->format('Y-m-d H:i:s U'));
@@ -23,7 +24,8 @@ var_dump($i->format('%s'));
?>
--EXPECT--
string(32) "5138-11-16 09:46:40 100000000000"
-int(100000000000)
-string(32) "5138-11-16 09:46:40 100000000000"
-int(100000000000)
+bool(false)
string(12) "100000000000"
+string(30) "2008-07-11 04:56:32 1215752192"
+int(1215752192)
+string(10) "1215752192"