Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94545 invoked from network); 29 Oct 2008 07:43:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2008 07:43:00 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:60933] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/87-48169-10418094 for ; Wed, 29 Oct 2008 02:42:58 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m9T7grfe024167; Wed, 29 Oct 2008 08:42:53 +0100 Date: Wed, 29 Oct 2008 08:42:53 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Sanjay Mantoor cc: internals@lists.php.net In-Reply-To: <2f9f913d0810282153s52dd0bd4y17393171ba85233f@mail.gmail.com> Message-ID: References: <2f9f913d0810282153s52dd0bd4y17393171ba85233f@mail.gmail.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [PHP]: getdate function behaviour From: derick@php.net (Derick Rethans) On Wed, 29 Oct 2008, Sanjay Mantoor wrote: > While I was working on getdate function, found different behavior with > respect to http://in.php.net/manual/en/function.getdate.php > This is observed only on linux 64bit. > Here is code > $timestamp = -12.3456789000e10; > var_dump( getdate($timestamp) ); > ?> > > As per documentation weekday should be Sunday through Saturday but I > got "Unknown". [snip] > Can somebody point-out what is the problem? And whether it is an > expected behavior. It's a bug in the day-of-week algorithm in case there is a negative year. Could you file a bug please? regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org