Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63911 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94402 invoked from network); 16 Nov 2012 08:36:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2012 08:36:34 -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.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:64734] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/44-63561-11BF5A05 for ; Fri, 16 Nov 2012 03:36:34 -0500 Received: by mail-qc0-f170.google.com with SMTP id d42so1785682qca.29 for ; Fri, 16 Nov 2012 00:36:31 -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=N0equzovPgm/IkjlqUMN/PwCSDBDiqs/0ijYWyqgLtc=; b=D8jpgJKFUI4V5sNrUO8vTO3ORX39odeq7ci5Przc1rsYYKgrm26pAgigEMySSuAA74 yB4a5LYskWaTHv7pnwtmIoz4bB/dyRCx43O3zwmSy4PG9jjaCqnhO5q0/Jai+D/wMQP1 tynBH5lL5QVvWMicy8YMey/L1VxcYIJGDC61YKaQ8nuFW3XO+zvWAJVDbJZno1M5oYBv qoba8iVn66dS2jwzhwjTJFj4LcK9AtbzYrEnh0lUQfjCZmaoLuvu66Nbxd2Egsn7ipaX Zi9UiPMS+8lvucRCC5l/al03ebAhOZT/2ELkHxonfniVIXV2jYP5FndPEaYtLpJPyGsc TDGA== Received: by 10.224.78.148 with SMTP id l20mr3627731qak.27.1353054990994; Fri, 16 Nov 2012 00:36:30 -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 z9sm535428qeg.9.2012.11.16.00.36.29 (version=SSLv3 cipher=OTHER); Fri, 16 Nov 2012 00:36:30 -0800 (PST) Message-ID: <50A5FB0C.1080602@lerdorf.com> Date: Fri, 16 Nov 2012 00:36:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: Pierre Joye CC: Anthony Ferrara , Will Fitch , Stas Malyshev , Adam Harvey , Devis Lucato , PHP Developers Mailing List 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> 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: ALoCoQnEK5fsVk5VrcSJWb+/sRyJuKJii2CKTuxsigSXyUkBwJdOz983qY4KBV8kHukT2V8IZ55v Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: rasmus@lerdorf.com (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