ID: 50899 Updated by: j...@php.net Reported By: werner at stuerenburg dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: SuSE Linux 8.0 (i386) PHP Version: 5.2.12 New Comment:
You get it with some other SAPI then, which might that be? And what _exactly_ is that OS running it (uname -a)? Webserver? (not enough info means this is quite bogus quite soon..) Previous Comments: ------------------------------------------------------------------------ [2010-02-01 20:51:59] werner at stuerenburg dot com 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. ------------------------------------------------------------------------ [2010-02-01 18:02:26] der...@php.net This works fine here, can you provide: - a short reproducing script? - output of "uname -a" ------------------------------------------------------------------------ [2010-02-01 16:52:29] werner at stuerenburg dot com I just want to inform you about the dialog with my provider in case anybody is interested (in German): > > > Ich habe einen Bug-Report erstellt: > > > > > > http://bugs.php.net/bug.php?id=50899 > > > > Vielen Dank dafür! Sie sehen ja die Reaktion: > > > > "Seems to be fixed in SVN." > > > > So wird also ein so gravierender Fehler von den Entwicklern abgetan. Was soll > > man da noch erwarten? > Tja, die Wut der Anwender wird über sie kommen... Mittlerweile wissen unsere Kunden welche "Qualität" PHP-Releases haben, womit sich die Wut erfreulicherweise in Grenzen hält. > Hier ist aber der Fehler ja anerkannt worden; dass die jetzt nicht > eine Eil-Mail rausschicken und die aktuelle Version reparieren, ist > schon ein Unding. Dieser Fehler hat ja weitreichende Konsequenzen; so > kann man sich seine Reputation schnell kaputtmachen. Wer weiß, welche > Nase an dieser Schaltstelle sass. (Der Chef weiss davon natürlich > nichts...) Welcher Chef? Das ist ja das Problem. Die haben keinen Chef und jeder murkst da vor sich hin wie er lustig ist und Einrichtungen wie http://qa.php.net/ scheinen nicht mal die Webseite wert zu sein, die für das Projekt ins Leben gerufen wurde. Denn wenn so ein offensichtlicher Fehler durch eine Qualitätskontrolle geht, kann diese ja wohl nicht viel taugen, wenn sie nicht mal merkt, dass die elementare Datumsfunktion des gesamten Interpreters fehlerhaft funktioniert. ------------------------------------------------------------------------ [2010-02-01 13:22:24] j...@php.net Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-02-01 13:21:47] j...@php.net Seems to be fixed in SVN. ------------------------------------------------------------------------ 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/50899 -- Edit this bug report at http://bugs.php.net/?id=50899&edit=1