From:             olivier at oxeva dot fr
Operating system: Fedora RC3 in 64 bits server
PHP version:      4.3.10
PHP Bug Type:     Reproducible crash
Bug description:  strtotime() different result in 32bits and 64bits servers

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)

-- 
Edit bug report at http://bugs.php.net/?id=33003&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33003&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33003&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33003&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33003&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33003&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33003&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33003&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33003&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33003&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33003&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33003&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33003&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33003&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33003&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33003&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33003&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33003&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33003&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33003&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33003&r=mysqlcfg

Reply via email to