Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55088 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25840 invoked from network); 2 Sep 2011 15:32:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2011 15:32:40 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.160.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:48103] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/80-20474-717F06E4 for ; Fri, 02 Sep 2011 11:32:40 -0400 Received: by gyd5 with SMTP id 5so2306134gyd.29 for ; Fri, 02 Sep 2011 08:32:36 -0700 (PDT) Received: by 10.43.45.66 with SMTP id uj2mr1141888icb.345.1314977556176; Fri, 02 Sep 2011 08:32:36 -0700 (PDT) Received: from [192.168.200.5] (c-50-131-46-20.hsd1.ca.comcast.net [50.131.46.20]) by mx.google.com with ESMTPS id n14sm3817504ibi.4.2011.09.02.08.32.35 (version=SSLv3 cipher=OTHER); Fri, 02 Sep 2011 08:32:35 -0700 (PDT) Message-ID: <4E60F712.4010901@lerdorf.com> Date: Fri, 02 Sep 2011 08:32:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= CC: PHP internals list References: <1314966424.2150.26.camel@guybrush> In-Reply-To: <1314966424.2150.26.camel@guybrush> X-Enigmail-Version: 1.2.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4 From: rasmus@lerdorf.com (Rasmus Lerdorf) On 09/02/2011 05:27 AM, Johannes Schlüter wrote: > Hi, > > when building PHP using > (I) ./configure --with-mysql --with-mysqli --with-pdo-mysql > you currently get a build using the system default libmysql, usually > in /us or > such. Alternatively PHP can be built using > (II) ./configure --with-mysqli=mysqlnd [...] > to build the MySQL extensions using the mysqlnd library. > > I would like to change mysqlnd's config9.m4 file to build PHP using > mysqlnd when being called in form (I). Users would still be able to > enforce libmysql by passing a path, like /usr. > > There are two main reasons I see for this: > a) Different libmysql versions have slightly different behavior, > which shows in our tests. We can't have both, a good test coverage > and cover all these differences. By using mysqlnd we have a clear > behavior every PHP developer can rely on. > b) We provide different extensions (pecl/mysqlnd_*) which > improve/extend mysqlnd functionality. By having mysqlnd as default > these are better usable by users. > > Opinions? I was actually going to suggest doing this in 5.4 and trunk but didn't get around to writing the email yet. -Rasmus