Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6869 invoked from network); 13 Nov 2012 16:13:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Nov 2012 16:13:50 -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:65029] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/51-30200-DB172A05 for ; Tue, 13 Nov 2012 11:13:50 -0500 Received: by mail-oa0-f42.google.com with SMTP id j1so7820050oag.29 for ; Tue, 13 Nov 2012 08:13:47 -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=Y6a5B6O5BeoTi89q5xZIl3hQzcrkWZ9PDUB1QI5x3rM=; b=moRPMSFGGNOaXocRSpPGKcIn7Q/KhKHW3zF9dLMuydEH/bnX4uhHQb0RvN/BhYrWx1 Z0h15v3CITs6t5tvXsbBZB4Jm6DE3Glyh/KUI4n/oMXFSnEgy7gYzq3Z5oEYJbO9/e3F CivG5hpgeLhbuBGbzcjI4Rmk9UOrhBy3q2B80= 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=Y6a5B6O5BeoTi89q5xZIl3hQzcrkWZ9PDUB1QI5x3rM=; b=ZR55pu0a7yW1S+G/n7Hs/KlVQh9IwwVKX+xBv+tc0Krb+qEgOypASg3EiDwumqC1Fv uP68eHueRJWBY6aXWez4GYOctpSneieo/mxcdAJ5ALp5EEviye1Oo6Xe9aqFNFAf2OvE TxyODVHW/8aqmTNd+6NxxTvNFxh1B0M/3EHHhc2hBmePpbsi40Q412wN99ZKQhYfQAEV 6E5nv6JnzYWmKTgB+0B7AUizdOKB4D7wa/451Y/GwuNJO9CTdG61yZacHG5sebw4edP3 /oLumECGYgih9RK7BqTvSrOA4TQKGr0Jxx4H2IRQGUOf69xZ/xEPkxbDwIXmgn8evVnA N+ug== Received: by 10.60.13.132 with SMTP id h4mr18161858oec.72.1352823226759; Tue, 13 Nov 2012 08:13:46 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.76.123.75 with HTTP; Tue, 13 Nov 2012 08:13:26 -0800 (PST) In-Reply-To: <8f4231fc-6e3c-4a33-af71-2af5e7a95dfd@email.android.com> 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:13:26 +0800 X-Google-Sender-Auth: rZoyW7RNG_14gwXGjvoi5NSNEM8 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Reinis Rozitis , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmC19wUVVgBgQdYaUA99o+zIC3EgIFeRO51SEEdBiMYfdKTAF+yM1V23MikAC4ruihZqN9E Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: aharvey@php.net (Adam Harvey) On 13 November 2012 23:49, Johannes Schl=C3=BCter = wrote: > > > Reinis Rozitis wrote: > >>> Rewriting perfectly functional mysql code to use mysqli is not a >>trivial >>> move, just as are the problems of re-writing PHP5.2 code to work >>cleanly >>> on 5.4. ISP's are stuck between keeping customers - who are most >>likely >>> not even very computer literate - working while fighting the problems >>that >>> changes such as removing mysql will cause them. >> >> >>I wonder if there have been any plans or suggestions (while dropping >>the >>old ext/mysql code) to provide some sort of seamless >>migration/alternatives >>(similar way it has been done in case of libmysql and mysqlnd)? >>In short - just aliasing the old mysql_* to mysqli_* functions (as most >>used >>like _query, _fetch_row/assoc have just mixed variable order)? >> > > Reimplementing ext/mysql inside PHP makes no sense. The result of this wo= uld be (almost) the exact same code as we have. (ext/mysql is a exremely sm= all wrapper over libmysql/mysqlnd only special thngs are pconnect, auto con= nect and reusage of default connection) What one might try to do is changin= g ext/mysql to not use a resource but an mysqli object, then users might sw= ich module by module, instead of breaking the application completely. But I= fear we will introduce many bugs that way as this is a quite huge patch. = An alternative approach might be to reimplement mysql_* functions using PHP= userland code based on mysqli. Then users can load that lib (php.ini autop= repend_file) for compatibility and bugs can be fixed relatively simple (no= C needed, no PHP release needed, ...) but again: writing such a lib is a r= elatively huge project. > > In my opinion we tell users as good as we can that ext/mysql is deprecate= d for some time, if we really want to get rid of it, we have to add E_DEPRE= CATED and then remove it.Waiting a year more won't change much, there will = always people who hit it. +1 on all of that. I was trying to crystallise my thoughts on the way home, and you've done it for me. Thanks, Johannes. :) Adam