Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95741 invoked from network); 30 Oct 2008 07:23:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2008 07:23:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=sanjay.mantoor@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=sanjay.mantoor@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.239 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.239 rv-out-0506.google.com Received: from [209.85.198.239] ([209.85.198.239:36562] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/41-15516-0F069094 for ; Thu, 30 Oct 2008 02:23:28 -0500 Received: by rv-out-0506.google.com with SMTP id g37so439573rvb.23 for ; Thu, 30 Oct 2008 00:23:25 -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=2uDH2qC1/sUXE44izikM+sRxhJHb6vZgV3iF5eYLiLI=; b=QHUkJt6jbj9T8NBFxiVvgZGDj2s8vVmX4QZakAY5YQouP5kB+xnLUa2cyHXTUBbl9j B4rCGjIvF2tX87fo6wbiTAEm8xDZO+tIyReQbRn5cAf1H5s+lFuyFwHEjuK7nL9OVgv4 AdGqRC9ytiyoqBFc6WNoiaYfqKBXX2Qn1lWqw= 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=r+lz++guql/Q91e9NjpgYaJI3m8TauQx5tRk5ze8hJbdYsEa9E7h1VpIxru4j7MPbX fEOJjkhhMh6t/Zsw4T8Mt2Sy0M+8vp/jQMn+5Gw9R1/AshkfJTBGUi/E5Ia+8Gk0uchA +48ZJSpZWvfrIujLKgHgPR4Lu1lknIi0/kWe4= Received: by 10.140.169.4 with SMTP id r4mr5460429rve.131.1225351405501; Thu, 30 Oct 2008 00:23:25 -0700 (PDT) Received: by 10.140.207.17 with HTTP; Thu, 30 Oct 2008 00:23:20 -0700 (PDT) Message-ID: <2f9f913d0810300023t23dbbe02g94cae4a6961e41d8@mail.gmail.com> Date: Thu, 30 Oct 2008 12:53:20 +0530 To: "Derick Rethans" Cc: internals@lists.php.net In-Reply-To: <2f9f913d0810290151l40c181d6q6dabf66639ccbd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f9f913d0810282153s52dd0bd4y17393171ba85233f@mail.gmail.com> <2f9f913d0810290151l40c181d6q6dabf66639ccbd@mail.gmail.com> Subject: Re: [PHP-DEV] [PHP]: getdate function behaviour From: sanjay.mantoor@gmail.com ("Sanjay Mantoor") Derick, I have raised bug Refer http://bugs.php.net/bug.php?id=46417 Tests related to getdate including test case for the above bug is available at http://www.4shared.com/file/68976901/6ce81c88/getdate.html. Please have a look at the tests and use following tests for above bug PHP53/getdate_variation7.phpt PHP6/getdate_variation7.phpt Thanks, Sanjay M On Wed, Oct 29, 2008 at 2:21 PM, Sanjay Mantoor wrote: > 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 > -- Thanks, Sanjay Mantoor