Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62700 invoked from network); 20 Jun 2010 11:00:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2010 11:00:15 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 188.40.37.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 188.40.37.16 hq1.backendmedia.com Linux 2.6 Received: from [188.40.37.16] ([188.40.37.16:59411] helo=hq1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/44-21297-EB4FD1C4 for ; Sun, 20 Jun 2010 07:00:15 -0400 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id 2FD5F200C18D; Sun, 20 Jun 2010 11:00:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RvvLoNO4eVLW; Sun, 20 Jun 2010 13:00:12 +0200 (CEST) Received: from [192.168.0.151] (217-162-131-234.dclient.hispeed.ch [217.162.131.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id 69A69200C187; Sun, 20 Jun 2010 13:00:12 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <4C1DE6E5.7060905@phpdoc.de> Date: Sun, 20 Jun 2010 13:00:07 +0200 Cc: =?iso-8859-1?Q?Johannes_Schl=FCter?= , Sebastian Bergmann , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <67747962-0905-46E9-9863-9152AC6E0BDD@pooteeweet.org> References: <1276945220.5172.66.camel@guybrush> <4C1DE6E5.7060905@phpdoc.de> To: Ulf Wendel X-Mailer: Apple Mail (2.1081) Subject: Re: [PHP-DEV] Remove sqlite2 from trunk From: mls@pooteeweet.org (Lukas Kahwe Smith) On 20.06.2010, at 12:01, Ulf Wendel wrote: > Johannes Schl=FCter schrieb: >> On Sat, 2010-06-19 at 12:45 +0200, Sebastian Bergmann wrote: >>> Am 19.06.2010 11:33, schrieb Patrick ALLAERT: >>>> What are the possible actions/alternatives? >>> I think this was already mentioned: add a BC layer to ext/mysqli so >>> that the "new" extension supports the old mysql_* functions. This = would >>> rid us off the old ext/mysql code without breaking code that relies = on >>> it. >> ... while such a wrapper has about the same amount of code as the >> classic mysql extension (... which is in most parts a simple wrapper >> over library functions...) Or in other words: Such a wrapper doesn't >> have real benefits.=20 >=20 > And any wrapper which is there by default won't change anything. = People will continue to use the old API. You need to move the masses or = create facts by removing ext/mysql. The latter is quite crazy = considering how popular ext/mysql is. Its popularity is somewhat = understandable: its old and the API is very phpish in a classical non = PJAVA sense. >=20 > One of the few things that could be done is adding a note to each and = every ext/mysql docs page stating that one shall use ext/mysqli instead = and give examples how to do it. well couldnt the compat layer be written in PHP? i think this will send = a fairly clear message. finally IIRC there was a mysql->mysqli = conversion script that could be prominently placed in the docs. and of = course we can add deprecation notices. regards, Lukas Kahwe Smith mls@pooteeweet.org