Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63866 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91326 invoked from network); 14 Nov 2012 09:24:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2012 09:24:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes.schlueter@oracle.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=johannes.schlueter@oracle.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracle.com designates 156.151.31.81 as permitted sender) X-PHP-List-Original-Sender: johannes.schlueter@oracle.com X-Host-Fingerprint: 156.151.31.81 userp1040.oracle.com Received: from [156.151.31.81] ([156.151.31.81:37051] helo=userp1040.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/80-22228-E5363A05 for ; Wed, 14 Nov 2012 04:24:46 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qAE9Og1p032231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Nov 2012 09:24:43 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qAE9OfAd027718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2012 09:24:42 GMT Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qAE9OfFD000542; Wed, 14 Nov 2012 03:24:41 -0600 Received: from [10.164.34.199] (/193.9.13.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 14 Nov 2012 01:24:41 -0800 To: Stas Malyshev Cc: Adam Harvey , Christopher Jones , PHP internals In-Reply-To: <50A33D65.2020202@sugarcrm.com> References: <50A197D2.5070307@oracle.com> <50A33D65.2020202@sugarcrm.com> Content-Type: text/plain; charset="UTF-8" Organization: Oracle Corporation Date: Wed, 14 Nov 2012 10:24:56 +0100 Message-ID: <1352885096.2237.20.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: johannes.schlueter@oracle.com (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Tue, 2012-11-13 at 22:42 -0800, Stas Malyshev wrote: > Hi! >=20 > >> 2. Mention how to turn off E_DEPRECATED warnings in the RFC? > >=20 > > Done and done. I've added a (short) workarounds section towards the > > bottom, which can be moved up later if the RFC is accepted. >=20 > Please note currently PHP has no mechanism of turning off any warnings > or errors. The best you can do is to cause them not be printed. However, > any tool that intercepts error messages still sees them, they still > consume resources when produced, still may break unit tests if you're > not aware of them and they convert errors to failures like PHPUnit does, > still will break any code that sets it's won error reporting if it > doesn't remember to disable deprecated messages, etc. So adding warnings > hurts performance and may hurt functionality even if you don't see them. If PHPUnit breaks on E_DEPRECATED by default I would consider it broken. (But I see your point) johannes --=20 Johannes Schl=C3=BCter, MySQL Connectors Team, ORACLE Corporation