Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11587 invoked by uid 1010); 23 Oct 2006 18:00:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11572 invoked from network); 23 Oct 2006 18:00:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2006 18:00:18 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.232 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 64.233.184.232 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.232] ([64.233.184.232:20454] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/7A-39788-0330D354 for ; Mon, 23 Oct 2006 14:00:18 -0400 Received: by wr-out-0506.google.com with SMTP id 55so385042wri for ; Mon, 23 Oct 2006 11:00:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aJkNcBkZTOJxoGSVwuLsHjgOzn8oZA0ge0+vfiFDzsx81wYn27qDAQhgygmHYPzxld6BTctuBSgscZFuw+VfmuNWuFQ6eF871o0RTUEQNkufsgu0y/LJ03u62yqJxJsaHbR5SjAjdUK/Wfj0xr7fdxifYGVsah875bTGMw78HmM= Received: by 10.78.204.7 with SMTP id b7mr7841046hug; Mon, 23 Oct 2006 11:00:13 -0700 (PDT) Received: by 10.78.137.6 with HTTP; Mon, 23 Oct 2006 11:00:13 -0700 (PDT) Message-ID: Date: Mon, 23 Oct 2006 20:00:13 +0200 To: "Derick Rethans" Cc: "Lukas Kahwe Smith" , "Ilia Alshanetsky" , RQuadling@googlemail.com, "php internals LIST" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10845a340610221045x2439b02alee7829425c902468@mail.gmail.com> <1B060546-A982-497C-8241-680044CDED15@prohost.org> <453C7372.3070104@php.net> <453C7A0A.8050905@php.net> Subject: Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT? From: pierre.php@gmail.com (Pierre) Hello, On 10/23/06, Derick Rethans wrote: > gmmktime() without parameters is broken in PHP 4 anyway. If you don't > give it arguments than it should default to the current date > and hour (in GMT for gmmktime() and in localtime for > mktime()). In both places this should result in the same timestamp, > which gmmktime() doesn't even do on PHP 4: Our point is to do not raise any warning in these two functions when they are called without arguments. Misunderstanding of the GMT idea by the previous implementation is another topic. I do not understand why it is a problem to add three lines to php_mktime and forget about it rather than adding more pain to the e_strict stack. You like to use only time()? fine, but we still have no way to use "gmmktime();" without warning and we are forced to change our mktime() calls, for no reason. --Pierre