php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31223 strtotime(int) does not return -1 on amd64
Submitted: 2004-12-21 08:38 UTC Modified: 2004-12-21 08:58 UTC
From: gabriel at telana dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.0.3 OS: Linux FC1 / AMD64
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gabriel at telana dot com
New email:
PHP Version: OS:

 

 [2004-12-21 08:38 UTC] gabriel at telana dot com
Description:
------------
calling strtotime with an integer as the first argument correctly returns -1 on i386, but a huge 64-bit int on AMD64.

Reproduce code:
---------------
echo strtotime(time());

Expected result:
----------------
-1

Actual result:
--------------
3420597366000

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-21 08:58 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Dup of #30215
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 19:01:32 2024 UTC