Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39116 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68666 invoked from network); 20 Jul 2008 20:19:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2008 20:19:50 -0000 Authentication-Results: pb1.pair.com header.from=quickshiftin@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=quickshiftin@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.237 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: quickshiftin@gmail.com X-Host-Fingerprint: 209.85.198.237 rv-out-0506.google.com Received: from [209.85.198.237] ([209.85.198.237:26401] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/CA-33537-7DD93884 for ; Sun, 20 Jul 2008 16:19:35 -0400 Received: by rv-out-0506.google.com with SMTP id g37so850734rvb.23 for ; Sun, 20 Jul 2008 13:19:31 -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:references; bh=ghdE4l2YsJUmVkSYGVi5SxUUfS2JykvCMIYdoo+8VAI=; b=Y884Uixmt7NyY0hWJVYQvf2map4kFbZByXQnqTKZdCxTgEDR5Bd+48COt66V6Ylblb osBdGfZ4y/2PojEZWsfZSMoIJNNdxfiCnQLg2WeH0x9hXuqqoDkG4lQS7cwtvIOmskCN HHSf3AbJ9Q8AKBnhQjXJJzL4se5FzNbkvddDc= 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:references; b=FCrXJExm5JjHRFhfsj75s9+b4tYs+uFQxA51HQjpwzlvP5MrwtZgwQV79xdqz93Tf+ Pp04yrK7PeddbfpKe2JjvYZC33ly/dDs2aQJv50IzNS57KqRGUJqKPpTmesJo8rfa4DG UC5tAQ5FXR5w/x21cdQ6h1SCnUM7k2jwDS7EA= Received: by 10.140.169.4 with SMTP id r4mr1416838rve.131.1216585171748; Sun, 20 Jul 2008 13:19:31 -0700 (PDT) Received: by 10.141.70.10 with HTTP; Sun, 20 Jul 2008 13:19:26 -0700 (PDT) Message-ID: <7dd2dc0b0807201319m46f57595t13d5a44b1e12b579@mail.gmail.com> Date: Sun, 20 Jul 2008 14:19:26 -0600 To: "Lukas Kahwe Smith" Cc: "Lars Strojny" , internals@lists.php.net In-Reply-To: <614DCEAD-CBB3-4D91-BFCF-CDC963D1C89E@pooteeweet.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_45663_11847849.1216585171743" References: <1216464955.1815.0.camel@localhost> <7dd2dc0b0807192245u2ec0ef7fw469b21ae3fc4f2f2@mail.gmail.com> <614DCEAD-CBB3-4D91-BFCF-CDC963D1C89E@pooteeweet.org> Subject: Re: [PHP-DEV] [RFC] E_USER_DEPRECATED From: quickshiftin@gmail.com ("Nathan Nobbe") ------=_Part_45663_11847849.1216585171743 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, Jul 20, 2008 at 2:02 PM, Lukas Kahwe Smith wrote: > > On 20.07.2008, at 07:45, Nathan Nobbe wrote: > > On Sat, Jul 19, 2008 at 4:55 AM, Lars Strojny wrote: >> >> Hi everbody, >>> >>> regarding my mail from yesterday, I've also created an RFC for the new >>> error level. >>> >>> http://wiki.php.net/rfc/e-user-deprecated-warning >>> >> >> >> i definitely like the E_USER_DEPRECATED :D im curious though, about >> E_DEPRECATED. is this for deprecated functions at the C level, or just >> the >> php api? the reason i ask is because deprecation notices are already >> issued >> via the E_STRICT level, for example, when using is_a() today, w/ E_STRICT >> enabled, the following is generated >> >> Strict standards: is_a(): Deprecated. Please use the instanceof operator >> in >> ... >> >> would, perhaps, the deprecation level for is_a() move to E_DEPRECATED (i >> noticed its still there in 5.3)? >> > > > deprecation of is_a() was a mistake that has been reverted. thats interesting, may i ask when that would be a better choice that instanceof ? and anyway, there are other examples as well, for example mktime(), PHP Strict standards: mktime(): You should be using the time() function instead in ... would this be another candidate to port to E_DEPRECATED ? so i imagine there will be some work to convert those E_STRICT errors regarding deprecation to the new E_DEPRECATED level. maybe that should go along w/ the patch. as a matter of consistency, i think it would be best to move all E_STRICT errors regarding deprecation to E_DEPRECATED in a single patch, rather than a piecemeal fashion. -nathan ------=_Part_45663_11847849.1216585171743--