php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58119 DateFormatter::localtime() doesn't work at 64-BIT machine.
Submitted: 2008-03-26 03:42 UTC Modified: 2008-05-22 16:50 UTC
From: v_chenshifu at hisoft dot com Assigned:
Status: Closed Package: intl (PECL)
PHP Version: 5_3 CVS-2008-03-26 (dev) OS: Ubuntu 7.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: v_chenshifu at hisoft dot com
New email:
PHP Version: OS:

 

 [2008-03-26 03:42 UTC] v_chenshifu at hisoft dot com
Description:
------------
<?php
    $dateFormatter=new DateFormatter("en_US",DateFormatter::LONG,DateFormatter::SHORT,date_default_timezone_get());
    print_r( $dateFormatter->localtime($dateFormatter->format(56580),null)); 
?>

It will output an array at a 32-bit system, but null at 64-bit system.


Reproduce code:
---------------
<?php
    $dateFormatter=new DateFormatter("en_US",DateFormatter::LONG,DateFormatter::SHORT,date_default_timezone_get());
    print_r( $dateFormatter->localtime($dateFormatter->format(56580),null)); 
?>

Expected result:
----------------
An array printed out.

Actual result:
--------------
null

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-22 16:50 UTC] stas at zend dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

should be fixed now
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 18:01:26 2020 UTC