ID: 36230 User updated by: hancoque at gmx dot de Reported By: hancoque at gmx dot de Status: Bogus Bug Type: Date/time related Operating System: Linux/Windows PHP Version: 4.4.2 New Comment:
Uhm, but this apparently works in PHP 5.11. And let me quote from the manual: "The function expects to be given a string [...] and will try to parse that format into a Unix timestamp [...], relative to the timestamp given in now, or the current time if none is supplied." Previous Comments: ------------------------------------------------------------------------ [2006-01-31 15:59:27] [EMAIL PROTECTED] I don't see why this is wrong... it's not meant to work in the first place. ------------------------------------------------------------------------ [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