|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-02-01 13:18 UTC] huchzen-t42 at yahoo dot de
Description: ------------ See for example http://wordpress.org/support/topic/358394 or http://www.google.de/search?q="8632884266970" This bug implies other errors, for example "Expiry date cannot have a year greater then 9999" from setcookie as setcookie has to transfer the timestamp into a date format. Workaround: Restore version 5.2.11 My provider asserts that this error does not ally to the cgi-version. Reproduce code: --------------- echo date('Y); Expected result: ---------------- 2010 Actual result: -------------- 8632884266970 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
Sorry, can't reproduce anymore as we degraded to 5.2.11 on the production machine (on my development box, I'm still on 5.2.6). Actually I didn't do echo date('Y'); but instead echo date('d.m.Y'); which should not matter. (Note that my provider reported that the cgi-version does not produce this error!) As Google reports, other people had this kind of error as well, notably with WordPress (most probably anywhere where the date function is used). I myself noticed the problem first from the setcookie-error mentioned initially. I tracked down the problem to the date-function, googled, found the indication that this is related to 5.2.12 and called my provider who was working on this problem already. He was glad that I found that this error was sufficiently documented; he contemplated to hack date.c in 5.2.12, but after some discussion, we decided to switch back. Also, I received emails triggered by a database-related error from my blog; a search engine was spidering and used perfectly valid addresses which the database could not find an entry to whence the error mail. I didn't investigate this, but I guess that the query used some kind of date-condition which produced an empty result. After we switched back to 5.2.11, this error was gone as well.