com php-src: 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: ext/date/tests/bug52062.phpt
| From: | Anatoliy Belsky | Date: | Tue, 10 Apr 2012 08:18:10 +0000 |
| Subject: | com php-src: 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: ext/date/tests/bug52062.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68705@lists.php.net to get a copy of this message | ||
Commit: 4ff55e646ab3450e06054b65a351082efe43e473
Author: Anatoliy Belsky <ab@php.net> Tue, 10 Apr 2012 10:18:10 +0200
Parents: 0f180a63ebb2d65bbe49b68d2430639b20443e9a
Branches: PHP-5.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4ff55e646ab3450e06054b65a351082efe43e473
Log:
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
Bugs:
https://bugs.php.net/61609
https://bugs.php.net/52062
Changed paths:
M ext/date/tests/bug52062.phpt
Diff:
diff --git a/ext/date/tests/bug52062.phpt b/ext/date/tests/bug52062.phpt
index d3e1c9a..81e767b 100644
--- a/ext/date/tests/bug52062.phpt
+++ b/ext/date/tests/bug52062.phpt
@@ -11,6 +11,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'));
@@ -21,7 +22,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"