Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91491 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43638 invoked from network); 3 Mar 2016 18:55:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2016 18:55:39 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 212.232.28.124 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 212.232.28.124 mx203.easyname.com Received: from [212.232.28.124] ([212.232.28.124:41180] helo=mx203.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/A5-08749-6A888D65 for ; Thu, 03 Mar 2016 13:55:36 -0500 Received: from cable-81-173-133-29.netcologne.de ([81.173.133.29] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1abYPL-0005q3-IS for internals@lists.php.net; Thu, 03 Mar 2016 18:55:31 +0000 Reply-To: internals@lists.php.net References: <1F.91.55238.41F10D65@pb1.pair.com> <56D42CD3.6020602@gmail.com> <56D57DF4.8000906@gmail.com> <56D5D2AD.6070805@gmail.com> <56D5DDA6.4080607@fleshgrinder.com> <40.73.36499.548B6D65@pb1.pair.com> <56D6BBD0.5010505@gmail.com> <56D73386.3000903@fleshgrinder.com> <86.68.21983.A2508D65@pb1.pair.com> <56D86C00.6000904@fleshgrinder.com> <56D870FC.80205@gmail.com> <56D8752A.9040307@fleshgrinder.com> <56D878E9.3060907@gmail.com> To: internals@lists.php.net Message-ID: <56D88892.5090004@fleshgrinder.com> Date: Thu, 3 Mar 2016 19:55:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D878E9.3060907@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oTX4oxQen6Qc6UU98ANtXUwO2vDjG7pbw" Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: php@fleshgrinder.com (Fleshgrinder) --oTX4oxQen6Qc6UU98ANtXUwO2vDjG7pbw Content-Type: multipart/mixed; boundary="a5xWm5cM2AOtBKKBamkwOCqGK24SrG8Nt" From: Fleshgrinder Reply-To: internals@lists.php.net To: internals@lists.php.net Message-ID: <56D88892.5090004@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal References: <1F.91.55238.41F10D65@pb1.pair.com> <56D42CD3.6020602@gmail.com> <56D57DF4.8000906@gmail.com> <56D5D2AD.6070805@gmail.com> <56D5DDA6.4080607@fleshgrinder.com> <40.73.36499.548B6D65@pb1.pair.com> <56D6BBD0.5010505@gmail.com> <56D73386.3000903@fleshgrinder.com> <86.68.21983.A2508D65@pb1.pair.com> <56D86C00.6000904@fleshgrinder.com> <56D870FC.80205@gmail.com> <56D8752A.9040307@fleshgrinder.com> <56D878E9.3060907@gmail.com> In-Reply-To: <56D878E9.3060907@gmail.com> --a5xWm5cM2AOtBKKBamkwOCqGK24SrG8Nt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 3/3/2016 6:48 PM, Rowan Collins wrote: > There's a subtle distinction which I may not have explained very well. > What I want is the ability to *selectively* ignore these warnings. For > instance, if I write: >=20 > namespace \Foo\Bar\Baz; > class AwesomenessFactory implements ArrayAccess { > var $something; > } >=20 > ... then I would be happy to see a notice that I'd used the wrong keywo= rd. >=20 > But if I write: >=20 > # TODO Replace dependency with modern equivalent > include 'Ancient/PEAR/Library.php'; >=20 > ... then I don't want to see 500 notices that the library I'm about to > replace has old-fashioned code in it. The same is true if I am actually= > maintaining the included library, and have a rewrite in the works which= > I am confident will supersede the current stable version long before th= e > next major version of PHP. >=20 > It's not about whether those notices are there for 6 years or 9 years, > or which E_* constant they appear under, it's about granularity of whic= h > ones shout at me. The closest we have to achieve this is ignore_repeated_errors plus ignore_repeated_source. However, you would still get one entry per request/process/... https://secure.php.net/errorfunc.configuration --=20 Richard "Fleshgrinder" Fussenegger --a5xWm5cM2AOtBKKBamkwOCqGK24SrG8Nt-- --oTX4oxQen6Qc6UU98ANtXUwO2vDjG7pbw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW2IiXAAoJEOKkKcqFPVVrskMP+QHdQYyE2+/usqegbIwXnIFB QefDDSIBDFBPTvcGTGbRT21wOs571LlKjgJTwxB/VR7ZfJEVW+PreKqkoA62XGzZ kV1QFMcUD3JlC4clRoxo6TSMYYsHqCFWY2UE5S+nF/rYrFCLMthBLX7i0NX3s3xx /hLkLQLT6Xa5cAvxRSmA7GrZJ3j8kYvKWWFE8xNH/fQvwxfAJXMagqsr03ImYU/w RZvkzwkqNSmizSzi924P4RRGi+Mujvz+Dm4U50B5xTWge8lumofhWavVhM0t3uAh VJ6+KHAp4RQ2hCZQR5oQSQR+JpY3mZhVE+txz/deGE09F0vRrocW754LGOL2e9qE BOzkUfhacdTCDxr7CAIkrsYYl0C/r20cOSUpT9hyErYTYUVCmrOoIpSwAdjuPSzZ t4I7Ujj7ULVzM6Rd+RVZirSLDb1LbIa4SsfcUbdsje9uerKT++NHyyitnKHGIJnF R0LboD23csfJ8t+4FL6yTMKl7ul9bLuFrK6jOIDQUBTSFUgqycXusItHTLGAgxVp l8aiTArBmV/5jQS2ZjL/1gIP5/olnKRE48rX0ceZbFUZLkqYqnlIIbsv9EoVVJAb NVuSwHW7m+Wj+UKJttTSMysGuoPC0c8UjYuFbpxorqkyf+FNqkhp1COjQYhuxaPi dVCDcBrFoJmVJey6SKeQ =AWhA -----END PGP SIGNATURE----- --oTX4oxQen6Qc6UU98ANtXUwO2vDjG7pbw--