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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
12 + 10 = ?
Subscribe to this entry?

 
 [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

Pull Requests

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: Thu Oct 31 23:01:28 2024 UTC