Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65261 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27771 invoked from network); 28 Jan 2013 15:48:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2013 15:48: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.210.178 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.178 mail-ia0-f178.google.com Received: from [209.85.210.178] ([209.85.210.178:65424] helo=mail-ia0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/3F-28517-7BD96015 for ; Mon, 28 Jan 2013 10:48:07 -0500 Received: by mail-ia0-f178.google.com with SMTP id y26so4488089iab.9 for ; Mon, 28 Jan 2013 07:48: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=cnWv685sAqsjS+dDCXktM1ajoO+UmTf65dmqjkDTEBo=; b=CbOjFn6qG/yBzsdnkwhC9ho8BKTPppwQ/IhHL5BYKEsV7i8fmawICUt6NTCpdZ6UXV zGQBpWm9SIpipHNDOvs6U+fyrchx1fmGlwm7jApnxhtEC/1yJZ66KRko5BKIsiYdWqoK X1ljbIms6FQ06YvuFONAsBtjCq1HHDnJN3yzK3XyNg2qUWP6jhOm1KlzdeUqKnInp0Y9 J+XOs/399JNWruoqXMRw99EBmEGZslkRU5TZ0fgf1gF6wC0ICm8XbnUwrrQvLbuXnQPm AXgDcJrkAAqA94tcitMGbwpY83tE0IDbrGGhEZ4KrGtMZVqbVLWF1JPeT2crWFVqyFMc D+mQ== MIME-Version: 1.0 X-Received: by 10.50.217.230 with SMTP id pb6mr3058698igc.43.1359388084615; Mon, 28 Jan 2013 07:48:04 -0800 (PST) Received: by 10.50.106.138 with HTTP; Mon, 28 Jan 2013 07:48:04 -0800 (PST) In-Reply-To: <51069A20.3050808@lsces.co.uk> References: <51069A20.3050808@lsces.co.uk> Date: Mon, 28 Jan 2013 16:48:04 +0100 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary=14dae93411e7e538e204d45b33b0 Subject: Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context From: tyra3l@gmail.com (Ferenc Kovacs) --14dae93411e7e538e204d45b33b0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jan 28, 2013 at 4:32 PM, Lester Caine wrote: > Ferenc Kovacs wrote: > >> >But this is a core php feature, for anyone who does not use traits.... = We >>> >use this quite a bit, it may not be for purists, but it has worked >>> >perfectly for years. This is getting a bit silly, change for change >>> sake.... >>> > >>> >> I've found this to be a huge wtf when you bump into, and already reporte= d >> by E_STRICT, so I was sold to the arguments made in the RFC. >> > > I think that this is the point here ... > In order for legacy code to even work, E_STRICT has to be disabled, so on= e > does not see any problem. Please Lester, could you stop pretending that E_STRICT errors will crash your application and kill all the kittens? There are a bunch of people (myself included) who tries to write E_STRICT free code so that our application is fast and bugfree? Yes, there are people who ignore E_STRICT and E_DEPRECATED and I agree that having a zillion of those in the PEAR packages is a wrong thing. But currently it is the way to remove a feature: deprecate it both in the code and the manual, advertise in the release announcement, and remove it in the next version, hence people who are interested in keeping up with the changes will know what do they need to check and change. > That is the whole point of the switch? There is no requirement to test > code with the switch on, the wtf comes when something that is 'protected' > by E_STRICT is later removed! E_STRICT was introduced in 5.0 E_DEPRECATED was introduced in 5.3, E_STRICT was used for things that we use E_DEPRECATED now, but E_STRICT can be used stuff other than deprecating features (like suggesting better alternatives: http://lxr.php.net/xref/PHP_5_5/ext/date/php_date.c#1493 ) > This was one of the major rework areas on my own code and I can TOTALLY > understand people taking the ADVISED ROUTE of switching E_STRICT off as a= n > alternative solution. What do you mean by ADVISED ROUTE? I don't think we officially advised anybody for ignoring errors/warnings/etc. Maybe you mean that somebody from the php project advised you to ignore the E_STRICT messages in a 3rd party library that you are using and not wanting to clean up yourself? > NOW the question is, what is the point of E_STRICT if it can't be avoided > anyway? http://php.net/manual/en/errorfunc.constants.php "Enable to have PHP suggest changes to your code which will ensure the best interoperability and forward compatibility of your code." --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --14dae93411e7e538e204d45b33b0--