ID: 36230
Updated by: [EMAIL PROTECTED]
Reported By: hancoque at gmx dot de
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux/Windows
PHP Version: 4.4.2
New Comment:
I don't see why this is wrong... it's not meant to work in the first
place.
Previous Comments:
------------------------------------------------------------------------
[2006-01-31 15:54:08] hancoque at gmx dot de
Description:
------------
When calling strtotime with an empty parameter it doesn't return an
equivalent of time() but a timestamp that is missing hours, minutes and
seconds (current day at 12:00 AM).
I found it in 4.4.1 and checked if it still exists in 4.4.2, which it
does. The problem occurs on the server of my webhoster (Linux) and on
my test server at home (Windows).
Reproduce code:
---------------
echo strtotime("");
Expected result:
----------------
1138718685
Actual result:
--------------
1138662000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36230&edit=1