Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:55084
Return-Path: <johannes.schlueter@oracle.com>
Mailing-List: contact internals-help@lists.php.net; run by ezmlm
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 5419 invoked from network); 2 Sep 2011 12:27:19 -0000
Received: from unknown (HELO lists.php.net) (127.0.0.1)
  by localhost with SMTP; 2 Sep 2011 12:27:19 -0000
Authentication-Results: pb1.pair.com smtp.mail=johannes.schlueter@oracle.com; spf=permerror; sender-id=unknown
Authentication-Results: pb1.pair.com header.from=johannes.schlueter@oracle.com; sender-id=unknown
Received-SPF: error (pb1.pair.com: domain oracle.com from 141.146.126.227 cause and error)
X-PHP-List-Original-Sender: johannes.schlueter@oracle.com
X-Host-Fingerprint: 141.146.126.227 acsinet15.oracle.com  
Received: from [141.146.126.227] ([141.146.126.227:39220] helo=acsinet15.oracle.com)
	by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
	id 26/B0-00288-6ABC06E4 for <internals@lists.php.net>; Fri, 02 Sep 2011 08:27:19 -0400
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
	by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p82CREdn022739
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <internals@lists.php.net>; Fri, 2 Sep 2011 12:27:15 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])
	by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p82CRDGq002110
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <internals@lists.php.net>; Fri, 2 Sep 2011 12:27:13 GMT
Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60])
	by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p82CR7VJ023412
	for <internals@lists.php.net>; Fri, 2 Sep 2011 07:27:08 -0500
Received: from [192.168.2.230] (/93.104.58.103)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 02 Sep 2011 05:27:07 -0700
To: PHP internals list <internals@lists.php.net>
Content-Type: text/plain; charset="UTF-8"
Organization: Oracle Corporation
Date: Fri, 02 Sep 2011 14:27:04 +0200
Message-ID: <1314966424.2150.26.camel@guybrush>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.2 
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090205.4E60CBA3.01D9:SCFMA922111,ss=1,re=-4.000,fgs=0
Subject: Make mysqlnd default over libmysql in 5.4
From: johannes.schlueter@oracle.com (Johannes =?ISO-8859-1?Q?Schl=FCter?=)

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=3Dmysqlnd [...]
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?

johannes
--=20
Johannes Schl=C3=BCter, Oracle
MySQL Engineering - MySQL Connectors and Client Connectivity