Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27610 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46615 invoked by uid 1010); 23 Jan 2007 17:30:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46586 invoked from network); 23 Jan 2007 17:30:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2007 17:30:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@block-online.eu; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lists@block-online.eu; sender-id=unknown Received-SPF: error (pb1.pair.com: domain block-online.eu from 81.169.146.161 cause and error) X-PHP-List-Original-Sender: lists@block-online.eu X-Host-Fingerprint: 81.169.146.161 mo-p00-ob.rzone.de Solaris 10 (beta) Received: from [81.169.146.161] ([81.169.146.161:61700] helo=mo-p00-ob.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/13-17963-71646B54 for ; Tue, 23 Jan 2007 12:30:03 -0500 Received: from ollie.block.home (dslb-084-063-181-178.pools.arcor-ip.net [84.63.181.178]) by post.webmailer.de (klopstock mo13) (RZmta 3.11) with ESMTP id j0NHFjXb00217A for ; Tue, 23 Jan 2007 18:29:55 +0100 (MET) Date: Tue, 23 Jan 2007 18:29:55 +0100 (MET) To: internals@lists.php.net User-Agent: KMail/1.7.1 References: <200701222028.59307.lists@block-online.eu> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-ID: <200701231829.15407.lists@block-online.eu> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-RZG-AUTH: jsAgD75E4FZRsMYse5W8COLJ40bV Subject: Re: [PHP-DEV] easter_date() II From: lists@block-online.eu (Oliver Block) Hello Pierre, a bug report will be no problem.:) Regarding a patch: timezone information needs to be accessible from within ext/calendar/easter.c if I got it right. The easiest way is to call php_mktime/PHP_FUNCTION(mktime) from within easter_date() - but is that possible/allowed/welcome? Regards, Oliver Am Montag, 22. Januar 2007 20:34 schrieb Pierre: > Hi Oliver, > > Report a bug using bugs.php.net (with a link to the patch diff -up :) > > This way it will not get lost in the internals archive. > > On 1/22/07, Oliver Block wrote: > > Hello, > > > > easter_date() returns a timestamp produced by C's mktime(). > > (ext/calendar/easter.c:111): > > > > Z_LVAL_P(return_value) = mktime(&te); > > > > AFAIK mktime() (time.h) is different to php's mktime() as it does not > > consider php's timezones, i,e, C's mktime does always return a timestamp > > of the local timezone. At least I conclude that from own tests. > > PHP's date functions on the other hand interpret the timestamp with > > respect to the php (default?) timezone. > > > > This leads to the wrong test results of easter_date.phpt as described in > > my posting from 22. Jan. > > > > Regards, > > > > Oliver > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php -- Leben ist mehr als ...