Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86607 invoked from network); 16 Nov 2012 07:27:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2012 07:27:05 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:38045] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/03-63561-9CAE5A05 for ; Fri, 16 Nov 2012 02:27:05 -0500 Received: by mail-ie0-f170.google.com with SMTP id c12so3654888ieb.29 for ; Thu, 15 Nov 2012 23:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UvhrlfGyFZ7xJz/mGZkBpcVFmH3u6cyLJe03FxhO0vI=; b=diEXyAHkWLP9/nPsHO2bFqR6g517rJDYmdyUioYUppGd9Fi1+0qAjPcLQwj2Qqnetj 7EKn2LbrmYGCAZeFNzMmPa9WWMOCug4RYMnap7Qps95jza/8mwM4AWzlyHrcL2AVmxzk GmzC03gzHy1pn7XPRGNcICetNtDRMUyvUKdvGm58H6mJEMwt2fu94FSWUHimIzXOfYp/ 5l80mNSGWOWCqoltxNbGYKgJjw81BMairmi9/K/kpH3EV02P26GaibyuIiEQuoQRwE8g gtAdq6Kq3pd2CPA1D7MLPw7OXEmY1QA7d7feI5y8jACVfdoA1JP8mc/awfFU6epGOpsZ qgaA== MIME-Version: 1.0 Received: by 10.43.132.65 with SMTP id ht1mr2979783icc.1.1353050822397; Thu, 15 Nov 2012 23:27:02 -0800 (PST) Received: by 10.64.33.143 with HTTP; Thu, 15 Nov 2012 23:27:02 -0800 (PST) In-Reply-To: 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> <50A549EB.2020408@lerdorf.com> Date: Fri, 16 Nov 2012 08:27:02 +0100 Message-ID: To: Anthony Ferrara Cc: Will Fitch , Rasmus Lerdorf , Stas Malyshev , Adam Harvey , Devis Lucato , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: pierre.php@gmail.com (Pierre Joye) hi Anthony, On Thu, Nov 15, 2012 at 9:11 PM, Anthony Ferrara wrote: >> 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. >> > >> >> So what solution is there to this? Should it not be deprecated? This same >> issue (is still happening) with register_globals for us, but it's >> acceptable as it has been phased out. Should there be no deprecation >> warning now and wait for a future release? >> > > That's my suggestion. Officially deprecate it, but don't add E_DEPRECATED > to it in 5.5. Update the documentation, and start a PR campaign to get off > it. Then in NEXT add E_DEPRECATED and in NEXT+1 remove it. This does not make sense, at all. We introduce this flag and used it already a lot in many parts of PHP (engine included) for this exact purpose. Most major apps have mysqli support or provide working solutions to support mysqli, incl. for plugins (like wordpress, which is likely to support mysqli in Q2 2013). Not adding the E_DEPRECATED flag would be a mistake and will only add more confusions by the time we will move it out. Cheers, -- Pierre @pierrejoye