Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63816 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38288 invoked from network); 12 Nov 2012 15:21:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2012 15:21:33 -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:54759] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/06-05794-BF311A05 for ; Mon, 12 Nov 2012 10:21:32 -0500 Received: by mail-ie0-f170.google.com with SMTP id c12so10433429ieb.29 for ; Mon, 12 Nov 2012 07:21:29 -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=+23O9YcE8ziwwY57IoMKeEz1qqDuh5z/e+HIEIoaVA0=; b=PQ0ooReF1hhMTnC9N6LcGernjtf06fY4IilD1Mn6ti6ZYSEqn+dkIiaG0/At/9GIVG kQP4WWM5EBf9paTeGU0BbagmJWZAIfnZgSnTWI2ZFSqgpjuPQY1spoTWXFtrSsJmEvfp hWUteyGXfBH8zjPSPZS0si/iAwcfFLE9IvkzM/92e318GRbfEmMglKSkf9/6IJV99DnK DWNFS3hnEqLKZgckv0YXBwJizM+mOKUfcCntQPeiFchXS50260uWJRCDvgPFuiUJxk0o vCG/tZigY+dr0foB/x65N+ws28rcfBJb3DozOr/s3WetAzvG1NVqeAemeqEB2ON0Lnw0 W57Q== MIME-Version: 1.0 Received: by 10.50.91.195 with SMTP id cg3mr8143876igb.57.1352733688932; Mon, 12 Nov 2012 07:21:28 -0800 (PST) Received: by 10.64.33.143 with HTTP; Mon, 12 Nov 2012 07:21:28 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Nov 2012 16:21:28 +0100 Message-ID: To: Adam Harvey , Ulf Wendel Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC: ext/mysql deprecation From: pierre.php@gmail.com (Pierre Joye) hi! On Mon, Nov 12, 2012 at 2:00 PM, Adam Harvey wrote: > I've written an RFC to cover deprecating ext/mysql in PHP 5.5: > https://wiki.php.net/rfc/mysql_deprecation. While we handled the soft > deprecation in the documentation purely via a straw poll on Internals, > I presume this will end up needing to go to a vote, hence the RFC. > > I won't rehash the background overly (there's some more detail in the > RFC), other than to note that we've now had deprecation notices on all > mysql_* functions in the manual for about six months and that the > logical next step is to start generating E_DEPRECATED notices when > users connect via mysql_connect(), mysql_pconnect() or the implicit > ext/mysql connection routines. It's my belief that doing so will > hasten the move of users to the more modern (and supported) APIs > available: mysqli and PDO, and that this process will also likely > encourage some users to switch to safer patterns such as prepared > queries at the same time. > > I must apologise for the lateness of this RFC: I had hoped to do this > some time before alpha 1, but travel and illness have taken their > toll. Better late than never! > > So, please provide comments, feedback, concerns, and so on. Obviously, > this isn't going to a vote for at least a couple of weeks, but earlier > feedback is better. Huge +1. The same arguments against deprecating it have been used for years without effects. Time to use a different approach. Also the mysql team provides a script which wraps the newers APIs into a ext/mysql api, allowing easy migration by including it. adding Ulf to the loop too. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org