Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3372 invoked from network); 16 Nov 2012 09:25:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2012 09:25:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=philip@roshambo.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=philip@roshambo.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain roshambo.org from 209.85.210.42 cause and error) X-PHP-List-Original-Sender: philip@roshambo.org X-Host-Fingerprint: 209.85.210.42 mail-da0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:33769] helo=mail-da0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/16-63561-57606A05 for ; Fri, 16 Nov 2012 04:25:10 -0500 Received: by mail-da0-f42.google.com with SMTP id z17so1069452dal.29 for ; Fri, 16 Nov 2012 01:25:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=hXhG8zISgFeNcV9cOl2MrXj1vfB6Zt4WwVo4NVQriJw=; b=SPK++wa4HweaXBXyIA26ueH1M0hwzGTAwlAexSE4cFATxgVubaIq29/fZdtVLbYnmT ffYC40VuRgkyP41OH4u5UGOwNSUe8Ks8zMPiFoy6Av9BvQbc/rxPp1iO6EnY/uSttseK Svq9qp7QdxicS7f84AW09soPgmehAamF1loTPOtJ+IYaqtd5/MPLU4Rdqqx9+tD81L+4 ih2LivsWOWif68Fga92/3Vi0jOie52e5cdP1rOOCe/3HvvyJIDO36XsAtcG58gKYQz+N 3mRdkoodK4PTKZ+ae9voJNao8OmsFcnwyZNZh10WzlCX2jB6WNEDx0W7GSbs0hfO4ygs rtPQ== Received: by 10.68.238.199 with SMTP id vm7mr12923956pbc.105.1353057907393; Fri, 16 Nov 2012 01:25:07 -0800 (PST) Received: from [192.168.2.100] (c-71-56-134-232.hsd1.wa.comcast.net. [71.56.134.232]) by mx.google.com with ESMTPS id yi9sm951821pbc.39.2012.11.16.01.25.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Nov 2012 01:25:06 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii In-Reply-To: <50A5FF83.1060706@lerdorf.com> Date: Fri, 16 Nov 2012 01:25:03 -0800 Cc: Patrick ALLAERT , Pierre Joye , Anthony Ferrara , Will Fitch , Stas Malyshev , Adam Harvey , Devis Lucato , PHP Developers Mailing List Content-Transfer-Encoding: 7bit Message-ID: References: <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> <50A549EB.2020408@lerdorf.com> <50A5FB0C.1080602@lerdorf.com> <50A5FF83.1060706@lerdorf.com> To: Rasmus Lerdorf X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQlAdrX6u9w5w8wrNiPso1BA+paIIpgLpUnx4aScrxjo8vMbgT0wYcBWCRB8za7jhtW+cU8d Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: philip@roshambo.org (Philip Olson) On Nov 16, 2012, at 12:55 AM, Rasmus Lerdorf wrote: > On 11/16/2012 12:51 AM, Patrick ALLAERT wrote: >> Rasmus, >> >> As per the RFC: adding E_DEPRECATED only in mysql_connect(), >> mysql_pconnect(). Which means only one error (normally) by request. > > I still don't see the point of using E_DEPRECATED like this for an > entire extension. And I think it will hurt more than it will help for an > extension this heavily used. It is going to encourage people to simply > turn off that warning because they will get it on every single request > which means they will never see the more subtle and granular > E_DEPRECATED warnings from other parts of their code. Most front page google results for "E_DEPRECATED" are questions about how to hide these errors. This thought has put me over the edge and into the land of not having E_DEPRECATED for ext/mysql in 5.5. Let us prepare for this first as we are not ready. Seriously, we are not ready. And it makes me wonder about "E_DEPRECATED" as a whole. But this seriously makes me wonder if we should add something like how_do_i_make_my_code_more_awesome(). That may look insane (well, the function name is) but imagine it saying "Stop using ext/mysql" and then users hear about this, run it, and ask Wordpress "Dude, this would be more awesome without ext/mysql" and so on. Brainstorming. :) Regards, Philip