Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17263 invoked from network); 29 Oct 2008 08:51:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2008 08:51:33 -0000 Authentication-Results: pb1.pair.com header.from=sanjay.mantoor@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=sanjay.mantoor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: sanjay.mantoor@gmail.com X-Host-Fingerprint: 209.85.198.225 rv-out-0506.google.com Received: from [209.85.198.225] ([209.85.198.225:44585] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/5C-48169-31428094 for ; Wed, 29 Oct 2008 03:51:31 -0500 Received: by rv-out-0506.google.com with SMTP id g37so3314618rvb.23 for ; Wed, 29 Oct 2008 01:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pYad1arWyO09VVv/zaRJz4oTjHNv+SjFvL/dlxPvBOU=; b=Q1fLU7KRt4wpDNykvAlF8dS6rFUGxLBUcSvSM1XaG8d/tjytbvyTXTFPX97c/xLIHF pk1J8UuTf0BVPZLP7l/2ehkXlONOV9GLMS2j8Bct0usHNAaZAZQ5xjfE/3z3LYUWlRqf n7cwxjTuj2QqlgCVpbzW+wZ9SA3po6lWAIMHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Teaqjn081u1hHSPcoImoPfOjPIO4hANsW9b88aFgmZ83cZ84OR6rK5qcAX54UNV96c e1/LzircASQAHCnvHNy4UpYA9UTv++520LIdsljp5H5rzzyKUeQivoVXkF5fLeBOfR1D R6XkSfKTbvS4J4IDUx3OF8x6SOl1f1OrotTec= Received: by 10.141.115.6 with SMTP id s6mr4721280rvm.224.1225270288595; Wed, 29 Oct 2008 01:51:28 -0700 (PDT) Received: by 10.140.207.17 with HTTP; Wed, 29 Oct 2008 01:51:28 -0700 (PDT) Message-ID: <2f9f913d0810290151l40c181d6q6dabf66639ccbd@mail.gmail.com> Date: Wed, 29 Oct 2008 14:21:28 +0530 To: "Derick Rethans" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f9f913d0810282153s52dd0bd4y17393171ba85233f@mail.gmail.com> Subject: Re: [PHP-DEV] [PHP]: getdate function behaviour From: sanjay.mantoor@gmail.com ("Sanjay Mantoor") Derick , Yes I will do. Thanks, Sanjay M On Wed, Oct 29, 2008 at 1:12 PM, Derick Rethans wrote: > 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 > -- Thanks, Sanjay Mantoor