#50590 [NEW]: IntlDateFormatter::parse result is limited to the integer range
| From: | a dot farhadi at gmail dot com | Date: | Mon, 28 Dec 2009 12:46:06 +0000 |
| Subject: | #50590 [NEW]: IntlDateFormatter::parse result is limited to the integer range | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-146152@lists.php.net to get a copy of this message | ||
From: a dot farhadi at gmail dot com
Operating system: Ubuntu
PHP version: 5.3.1
PHP Bug Type: I18N and L10N related
Bug description: IntlDateFormatter::parse result is limited to the integer range
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 bug report at http://bugs.php.net/?id=50590&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50590&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50590&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50590&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50590&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50590&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50590&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50590&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50590&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50590&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50590&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50590&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50590&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50590&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50590&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50590&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50590&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50590&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50590&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50590&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50590&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50590&r=mysqlcfg