Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32452 invoked by uid 1010); 23 Oct 2006 06:57:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32437 invoked from network); 23 Oct 2006 06:57:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2006 06:57:10 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 82.94.239.5 cause and error) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from [82.94.239.5] ([82.94.239.5:36861] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/13-11628-4C76C354 for ; Mon, 23 Oct 2006 02:57:10 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id k9N6v3XL016200; Mon, 23 Oct 2006 08:57:04 +0200 Date: Mon, 23 Oct 2006 08:56:18 +0200 (CEST) X-X-Sender: derick@localhost To: Ilia Alshanetsky cc: Rasmus Lerdorf , Lukas Kahwe Smith , Richard Quadling , php internals LIST In-Reply-To: <3A2844B2-C513-47C9-9B62-02DE97447618@prohost.org> Message-ID: References: <10845a340610221045x2439b02alee7829425c902468@mail.gmail.com> <453BE73B.4020300@php.net> <59BCAFC2-C867-47B8-82D3-1BD0887568FE@prohost.org> <453BF05D.9070006@lerdorf.com> <3A2844B2-C513-47C9-9B62-02DE97447618@prohost.org> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT? From: derick@php.net (Derick Rethans) On Sun, 22 Oct 2006, Ilia Alshanetsky wrote: > > On 22-Oct-06, at 6:27 PM, Rasmus Lerdorf wrote: > > Yes, but E_STRICT is not an argument validation error level. Throwing an > > E_STRICT here is quite wrong unless we have completely redefined E_STRICT to > > mean just about any sort of error. mktime($a) is perfectly fine at the > > language level and E_STRICT is supposed to be language-level errors not > > something that is thrown based on the value of $a. > > As Pierre had correctly identified the E_STRICT currently is only raised in 2 > instance mktime() <-- no args or when the deprecated dst parameter is being > used. While I agree that E_STRICT maybe misused there, it is only the case if > the decision is to maintain the mktime() == time() functionality. And I'd be happy to change both to E_DEPRECATED when we get that error level. regards, Derick