Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23329 invoked from network); 15 Nov 2012 20:00:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2012 20:00:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.49 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:60166] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/26-07334-0F945A05 for ; Thu, 15 Nov 2012 15:00:49 -0500 Received: by mail-qa0-f49.google.com with SMTP id c3so1546622qae.8 for ; Thu, 15 Nov 2012 12:00:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=dgC3s3wK7q/VkWDfOjPA06pp43RpRlWaPCOISUqp1yE=; b=VqFWJMvtadUPFxoQKB884RMCSxOiCmReHYbuXxeh9AdfqmKTGU7mq99EyDSDKkAMWO qIFINcbIQRCCGOxpcAOULxPpXqOnemIUme0g5qlLc8kw9Y03dMDVG2kt921GtL0NYd7o +jjJ9IMBZbUtwhOvMO7VgDjCnm7bBkzIwcfzXh7RRg7nShLYlUB//hNVvUs1ETQSorx1 qm4xEFcA/TKCvaDJnsJAxrMZXYestCCIDp640T5xAavQAeuclcuRtSjzetrmV7ouPcKK AQ3d7zdh1KktLakzF9XHKSdXhEwa+87yJmhAmoqlP6RGa98aNm1Bc3VheT32hMsTvif0 nwzA== Received: by 10.49.13.202 with SMTP id j10mr2370271qec.27.1353009646118; Thu, 15 Nov 2012 12:00:46 -0800 (PST) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id j3sm3665272qek.7.2012.11.15.12.00.44 (version=SSLv3 cipher=OTHER); Thu, 15 Nov 2012 12:00:45 -0800 (PST) Message-ID: <50A549EB.2020408@lerdorf.com> Date: Thu, 15 Nov 2012 12:00:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: Will Fitch CC: Stas Malyshev , Adam Harvey , Devis Lucato , PHP Developers Mailing List References: <50A10A9D.9070402@oracle.com> <50A1946F.8010407@lerdorf.com> <50A20CCB.8090909@lsces.co.uk> <8A8A29F9E43E417FB5450D63019B2DDB@NeiRoze> <8f4231fc-6e3c-4a33-af71-2af5e7a95dfd@email.android.com> <50A2D672.7010600@gmail.com> <50A30144.5070305@phpgangsta.de> <50A3BEC0.8030607@gmail.com> <50A54713.8090102@sugarcrm.com> In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnoX6aIrURuOlDz9CWkB+9NcHfWlm5J+if70a09/2DXqAc12qAoMUPeUhZ6RahEeQh1KjUH Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: rasmus@lerdorf.com (Rasmus Lerdorf) On 11/15/2012 11:53 AM, Will Fitch wrote: > On Thu, Nov 15, 2012 at 2:48 PM, Stas Malyshev wrote: > >> Hi! >> >>> Again, though, this is a long way down the road: today's discussion is >>> purely about deprecation. >> >> So these people using mysql-based code will have for years to live with >> applications generating thousands of warnings and not be able to do a > > thing about it? How is it good for them? >> > > I don't mean to state the obvious, but wouldn't display_errors = 'Off' in > production or error_reporting = E_ALL ^ E_DEPRECATED be sufficient? This > is the same approach taken with register_globals - and it happened between > 5.3 and 5.4. Actually, no it wouldn't. You still get the overhead of the error, plus any custom error handlers will be triggered regardless of the error_reporting setting which depending on the implementation of the error handler can be quite costly performance-wise. -Rasmus