#30215 [NoF->Fbk]: strtotime returning huge timestamps instead of -1
| From: | derick@php.net | Date: | Wed, 29 Jun 2005 12:47:00 +0000 |
| Subject: | #30215 [NoF->Fbk]: strtotime returning huge timestamps instead of -1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81165@lists.php.net to get a copy of this message | ||
ID: 30215
Updated by: derick@php.net
Reported By: pmurray at nevada dot net dot nz
-Status: No Feedback
+Status: Feedback
Bug Type: Date/time related
Operating System: Linux 64bit - Opteron
PHP Version: 5.*, 4.*
Assigned To: derick
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
I just tested this on a 64bit platform, it returns bool(false) (like it
should):
[derick@content php5-200506291030]$ sapi/cli/php -r
'var_dump(strtotime(time()));'
bool(false)
Previous Comments:
------------------------------------------------------------------------
[2005-06-27 15:24:22] arpad at zooloo dot com
derick@php.net:
I'm not sure if this is related but beta2 on 32bit windows behaves a
lot worse than beta1 did:
echo strtotime(1118936460); results in 1119871080 which does not make
sense.
This worked perfectly with beta1.
I have not yet tested this on my 64bit gentoo.
------------------------------------------------------------------------
[2005-06-26 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-06-18 21:44:15] derick@php.net
I've no access to a 64bit machine. A temporary account would help here
- let me know by mail if you can provide one.
------------------------------------------------------------------------
[2005-06-17 00:51:34] pmurray at nevada dot net dot nz
Something's changed, but it still doesn't behave properly.
pmurray@wildfire:~/php5-200506162030/sapi/cli> echo "<? print
strtotime(time()) . \"\n\"; ?>" | ./php
-42492861720
------------------------------------------------------------------------
[2005-06-16 21:31:45] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30215
--
Edit this bug report at http://bugs.php.net/?id=30215&edit=1