Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8428 invoked from network); 13 Nov 2012 16:18:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Nov 2012 16:18:14 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:62243] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/B1-30200-6C272A05 for ; Tue, 13 Nov 2012 11:18:14 -0500 Received: by mail-oa0-f42.google.com with SMTP id j1so7826263oag.29 for ; Tue, 13 Nov 2012 08:18:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=vC8eEIQ0F6xl9DQJhQ2W/yZJRaXbUgYM5jXhz9hSIwM=; b=faS7oMe7xvGb6mOMenEkxlDIFFBwvrPWCpHyq8WHBKrc5kAJVy2dpkEHUdrlp4J37I WhMKeESdToBxfMQO86Fj7HzpRycUk8z7vOPKkTdwKFPlIgB7qX6LxzGo6t1qet6ad8Dg loUi0llorXFsymPBieJp3tj4+O1Z5UkqpdaCM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=vC8eEIQ0F6xl9DQJhQ2W/yZJRaXbUgYM5jXhz9hSIwM=; b=U1FtO+tcS8nEwh2vYFRNq7hjE71s4RSfoftx+d4WzrU5yv3pjeDyGeVPsQwTxqHt7l siOJoL+4mitHByuYCOo0MSbAbl7itn55Weeff45QorpQ1jbD3QsmugkJDPs+NvNuZFDt g0F405zYGjmGE7hNc6Hq/4qr7QEXrJR9zTyeuz0wlyCbRUKIjB8bSLUPlGTedImGW52M vC2GlmGY79fC4sWTHxmT2eDCeFxhA8YofkLtSaSXTYenkcw+E2WobWSoEf4bQMU25J2B HtrHiBQetKCkCJTmX/4ZdoCdU9ApnrrLJKi/LWj2hMnjRLTcV34Kx0GEgbFfwfm8/IBU BdTw== Received: by 10.60.14.138 with SMTP id p10mr7051335oec.20.1352823491882; Tue, 13 Nov 2012 08:18:11 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.76.123.75 with HTTP; Tue, 13 Nov 2012 08:17:51 -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> Date: Wed, 14 Nov 2012 00:17:51 +0800 X-Google-Sender-Auth: vKewbbtfu-LFS1nccotlpEJU_Ao Message-ID: To: Anthony Ferrara Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQm2NDc3DctR5kWLB5EHQmKQp+MdwhVcbTdG3Oc/3bDtbMSpPBJ8NYSphdf5XSd2O+u8gUyN Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: aharvey@php.net (Adam Harvey) On 14 November 2012 00:07, Anthony Ferrara wrote: > There's one important thing that I think you all are missing here. You ke= ep > bringing up that we should just use the normal "deprecation" process. The > problem is that the deprecation process was never designed for a feature > like this. Serious question: what was it designed for, then? This (along with magic quotes, and register globals) was always what I had in the back of my mind when it was being discussed. > Now, look at ext/mysql. The landscape is completely different. Major > projects still rely on it in their most recent versions. Wordpress's late= st > trunk uses ext/mysql. And as was said here, it's not a trivial change to > switch from mysql to mysqli or PDO. ext/mysql is still very heavily relie= d > upon. Last time I checked, WordPress's trunk also emulated magic quotes. Old code is old. With all due respect to the WP developers, they've made a very deliberate choice to maintain extreme backward compatibility because their plugin ecosystem demands it. Ultimately, they'll presumably emulate mysql_* in userland if it's that important to them, just as they are with magic quotes. I don't think we should let that stop us from removing dead code, or replacing APIs that promote antipatterns. > What I would suggest, is not adding E_DEPRECATED for 5.5. Instead, > officially deprecate it in the docs. Then start a PR campaign to get > projects like WP to switch away from it. Get the word out there as much a= s > possible. Then in 1 to 2 years when 5.6/6 is released, add E_DEPRECATED. It's already deprecated in the documentation, really=C2=A0=E2=80=94 I doubt= adding the actual word "deprecated" will make a difference. If we're going to drag this out, I'd rather spend an extra year with PHP actually generating warnings, as I said upthread. Adam