Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65539 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22048 invoked from network); 31 Jan 2013 11:41:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2013 11:41:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.178 mail-ie0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:48637] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/D4-09318-2585A015 for ; Thu, 31 Jan 2013 06:41:06 -0500 Received: by mail-ie0-f178.google.com with SMTP id c13so2240645ieb.9 for ; Thu, 31 Jan 2013 03:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=ifJeqXm0Vz7PIz+7l6BuvuvuxjkLe6fNzjkYtNuFisk=; b=pdb5TW8dmmxXVTEWIvaQBdpsUGfyJbRjb6iHFo9A1SnEXNiqnve3W+yynAaAnkwdCd 1QBAJOBGRyKCPyJng1ju/877eBB/tuiME1CuHZ90bRcqLgxhtiQ5l758I8mQP/PMQPfK UCW9R1ThLGMfsHbE6zWGnhlkmR+fNlpUxfh30rjmke++St7m0/O8Xhe5YlNVtQzVuhdl 60FowKr1243jG2Zt7RihsjFhs81UWWE+Dk3BITgyK07BiBkCfuJtclCDQ95JFp5tbgom zA8rnFIq1Scr+zYbv/JpcIVoKEIiVdG+0+vsJSZ3SLEiKpgVHSvwq1PgnIGsrWTeNFxf ks+w== MIME-Version: 1.0 X-Received: by 10.50.7.234 with SMTP id m10mr850021iga.43.1359632463949; Thu, 31 Jan 2013 03:41:03 -0800 (PST) Received: by 10.50.106.138 with HTTP; Thu, 31 Jan 2013 03:41:03 -0800 (PST) In-Reply-To: <5109A834.6070503@roojs.com> References: <1460659e-237d-4c7c-8cfa-523ec857d646@email.android.com> <51074873.5090600@roojs.com> <51076233.2040507@sugarcrm.com> <5109A834.6070503@roojs.com> Date: Thu, 31 Jan 2013 12:41:03 +0100 Message-ID: To: Alan Knowles Cc: Stas Malyshev , PHP Internals Content-Type: multipart/alternative; boundary=f46d04462dd409efd304d4941aa6 Subject: Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break) From: tyra3l@gmail.com (Ferenc Kovacs) --f46d04462dd409efd304d4941aa6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > The fact that this use of PHP is documented in the manual as a feature > www.php.net/manual/en/**language.oop5.basic.php > > And mentions that it will elicit a E_STRICT error - does not indicate tha= t > it would be DEPRECATED, I'm assuming that has been documented for years, > and only recently (a year or two) has the E_STRICT comment been added. > There is also no real Justification for the E_STRICT message =3D see > suggestion at end.. > I stand corrected, I said that (AFAIR) is an undocumented feature, but as you pointed out, it is documented since (at least) 2004: http://svn.php.net/viewvc/phpdoc/en/trunk/language/oop5/basic.xml?view=3Dma= rkup&pathrev=3D166424 (there is a typo here, so it is called a psudo variable) And an example was added in 2005: http://svn.php.net/viewvc?view=3Drevision&revision=3D178495 by sean (funny commit comment: 'document seemingly-odd $this behaviour'). The E_STRICTs were added to the examples in 2009: http://svn.php.net/viewvc?view=3Drevision&revision=3D288217 This doesn't really change my opinion, but it means that there could be more people using this feature than I/we assumed. Given the fact that this already spits E_STRICT(and E_STRICT is part of E_ALL since 5.4) and both E_STRICT and E_DEPRECATED is disable in our php.ini-production, I would say that changing this from E_STRICT to E_DEPRECATED has no direct impact to the userland. But we can use this change to sample the people using this feature and based on the feedback we can decide whether we want to keep this or remove it for the next version. So my opinion is that we should stick to the vote and deprecate this feature but update the RFC and remove the part removing it in the next version. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --f46d04462dd409efd304d4941aa6--