Bug #50590 [Opn->Asn]: IntlDateFormatter::parse result is limited to the integer range
| From: | felipe@php.net | Date: | Sun, 20 Jun 2010 21:55:53 +0000 |
| Subject: | Bug #50590 [Opn->Asn]: IntlDateFormatter::parse result is limited to the integer range | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151682@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=50590&edit=1
ID: 50590
Updated by: felipe@php.net
Reported by: a dot farhadi at gmail dot com
Summary: IntlDateFormatter::parse result is limited to the
integer range
-Status: Open
+Status: Assigned
Type: Bug
Package: I18N and L10N related
Operating System: Ubuntu
PHP Version: 5.3.1
-Assigned To:
+Assigned To: stas
Previous Comments:
------------------------------------------------------------------------
[2009-12-28 12:46:06] a dot farhadi at gmail dot com
Description:
------------
The result of IntlDateFormatter::parse is integer and is limited to the
integer range. (i.e. IntlDateFormatter::parse returns The least integer
value (e.g. -2147483648 in 32-bit Platforms) when the result is out of
the integer range.)
Reproduce code:
---------------
$fmt = new IntlDateFormatter("en_US", IntlDateFormatter::FULL,
IntlDateFormatter::FULL);
var_dump($fmt->parse("Wednesday, January 20, 2038 3:14:07 AM GMT"));
Expected result:
----------------
float(2147570047)
Actual result:
--------------
int(-2147483648)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=50590&edit=1