Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63912 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96286 invoked from network); 16 Nov 2012 08:51:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2012 08:51:24 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:38195] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/94-63561-B8EF5A05 for ; Fri, 16 Nov 2012 03:51:24 -0500 Received: by mail-ee0-f42.google.com with SMTP id t10so1550210eei.29 for ; Fri, 16 Nov 2012 00:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zjOoKeDjV8DqHYGdVQO6p63uISfpGliJDBIhjbUpp0Q=; b=YFZw5UyA0h8pOzL2w36hqWdkExtFTsHwIFa+uMTM24IJSVvZJneCfj9vNgZ82w1i1z T2GCucy/SExJ8LMWamPTCOB1S8It6bbGE3R8+msn7PigH/22VIWs+bVJ9hHg6wyGth6O 8cWUyUM5OQgAqdsDywx03mNkso0JJDD9o8RHP6x0ZEvGN5uKpIv4sAeoLyhdkZ0K0Qeq rD24icJ9s0AV8DmflOmdqkpa53v8TcFjcNjVMdSwMSgv609QF1ozKqgEMPOA3+aC5zx0 U5PyYyhogsTErniMjwWiQPAyacwF+4DdzGjIhchSp34gjCxtC1ePqlQghc5sogDXd0ye X3Nw== MIME-Version: 1.0 Received: by 10.14.179.6 with SMTP id g6mr11471508eem.46.1353055879150; Fri, 16 Nov 2012 00:51:19 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.14.129.193 with HTTP; Fri, 16 Nov 2012 00:51:18 -0800 (PST) In-Reply-To: <50A5FB0C.1080602@lerdorf.com> 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> Date: Fri, 16 Nov 2012 09:51:18 +0100 X-Google-Sender-Auth: lAOSHELW51YOefaXP31Ys1FP4u4 Message-ID: To: Rasmus Lerdorf Cc: Pierre Joye , Anthony Ferrara , Will Fitch , Stas Malyshev , Adam Harvey , Devis Lucato , PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: patrickallaert@php.net (Patrick ALLAERT) Rasmus, As per the RFC: adding E_DEPRECATED only in mysql_connect(), mysql_pconnect(). Which means only one error (normally) by request. 2012/11/16 Rasmus Lerdorf : > On 11/15/2012 11:27 PM, Pierre Joye wrote: >> 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. > > Actually we have never used E_DEPRECATED to deprecate an entire > extension. We have deprecated specific functions and engine features, > but for entire extensions we have provided alternatives and/or waited > for them to become inconsequential and then moved them to pecl. But we > certainly never littered the extension with warnings before moving it out. > > How do you see adding E_DEPRECATED working here? Do we add it to every > function in the extension? Just to some? And then when we move the > extension to pecl do we pull the warnings back out? Surely it makes no > sense to move an extension out of core to pecl and spew E_DEPRECATED > warnings to people who explicitly choose to install it. > > -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor