php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33003 strtotime() different result in 32bits and 64bits servers
Submitted: 2005-05-10 23:34 UTC Modified: 2005-05-11 00:41 UTC
From: olivier at oxeva dot fr Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.10 OS: Fedora RC3 in 64 bits server
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: olivier at oxeva dot fr
New email:
PHP Version: OS:

 

 [2005-05-10 23:34 UTC] olivier at oxeva dot fr
Description:
------------
An example is better than any explanation:

In 64 bits system :

var_dump(strtotime("1115418006")) returns int(3457934838000)

In 32 bits system : 

var_dump(strtotime("1115418006")) returns int(-1)



I know that it SHOULD return -1, but returning 3457934838000 is absolutely false.
The result differs, wether we are in a 32 bits system or on a 64 bits.

Reproduce code:
---------------
<?php

// This works on 64bits system, with PHP compiled in 64bits too

var_dump(strtotime("1115418006"));


Expected result:
----------------
echoes :
int(-1)

Actual result:
--------------
int(3457934838000)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-11 00:41 UTC] tony2001@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.

See bug #30215.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 15:01:31 2024 UTC