Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41542 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76848 invoked from network); 29 Oct 2008 04:53:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2008 04:53:15 -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:25808] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/F4-48169-93CE7094 for ; Tue, 28 Oct 2008 23:53:14 -0500 Received: by rv-out-0506.google.com with SMTP id g9so3534178rvb.7 for ; Tue, 28 Oct 2008 21:53:11 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=LYYOURZagRiC4bkHiJUUWrgVQZG9yytOdHL8kQyYaW0=; b=hFicqbDJ4VAqLs+Q1YgV0zamkzfyTJUirDyBAbUX9UdGgdliWSYWEV2eaDJGD0gb8N /NFTIRgtFg/JVfo6M8riUdtYh7pl9uJG7dEVOF3acTnaxqVvf84dBuO490PpjaxHPtHv 8ap/3rhVc2jT4ukwxCvz3JIjTcActPYqTnSps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=yGwcZcOX7lyf5Ibi8iH3qATbT6cJsyjJDF+TAEiJV92OhPChO8F8TNkAYk604YpnJq ys786QMaeBwxWN3eW5PqAE+4PJePiiKgTR/F+SZWZsdr1vOiyqlWvFXmnpf8F9+RHd3D hcmkAXGk/S/3dt6rnejBtxe8H9CnZRz0zoyvU= Received: by 10.140.127.13 with SMTP id z13mr4613825rvc.194.1225255991264; Tue, 28 Oct 2008 21:53:11 -0700 (PDT) Received: by 10.140.207.17 with HTTP; Tue, 28 Oct 2008 21:53:11 -0700 (PDT) Message-ID: <2f9f913d0810282153s52dd0bd4y17393171ba85233f@mail.gmail.com> Date: Wed, 29 Oct 2008 10:23:11 +0530 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [PHP]: getdate function behaviour From: sanjay.mantoor@gmail.com ("Sanjay Mantoor") Hello, 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 As per documentation weekday should be Sunday through Saturday but I got "Unknown". Here is the output: array(11) { ["seconds"]=> int(20) ["minutes"]=> int(23) ["hours"]=> int(5) ["mday"]=> int(23) ["wday"]=> int(-4) ["mon"]=> int(10) ["year"]=> int(-1943) ["yday"]=> int(295) ["weekday"]=> string(7) "Unknown" ====> It should be Sunday through Saturday ["month"]=> string(7) "October" [0]=> int(-123456789000) } Can somebody point-out what is the problem? And whether it is an expected behavior. -- Thanks, Sanjay Mantoor