Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36040 invoked from network); 2 Sep 2011 17:19:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2011 17:19:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=pencap@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pencap@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: pencap@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:39455] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/70-31460-600116E4 for ; Fri, 02 Sep 2011 13:19:03 -0400 Received: by vwl1 with SMTP id 1so2578139vwl.29 for ; Fri, 02 Sep 2011 10:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5yg3hnY4F1os16QBOPs7jcbVClMYtFyuPIF4TqrZ87o=; b=wjIN2il39ISQxH3YbK7bE1NtQ+yc0l9Zvv41Qs+/f9N2jvHmNkmN4StR88+1OPZahR 8Z3JI9SmxD2uox3EcWCrcoykW5LAU0TZloZAPxWWpyPu6DX4xj3Y8g4yK7Uxf5c9sneT AGMdnT4iCqmEWF8p0Uj/yymy+VhI20swuINow= MIME-Version: 1.0 Received: by 10.52.71.162 with SMTP id w2mr1362656vdu.48.1314983940302; Fri, 02 Sep 2011 10:19:00 -0700 (PDT) Received: by 10.52.183.38 with HTTP; Fri, 2 Sep 2011 10:19:00 -0700 (PDT) In-Reply-To: References: <1314966424.2150.26.camel@guybrush> Date: Fri, 2 Sep 2011 12:19:00 -0500 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=20cf3071c798a5a73304abf88e27 Subject: Re: [PHP-DEV] Make mysqlnd default over libmysql in 5.4 From: pencap@gmail.com (Mike Willbanks) --20cf3071c798a5a73304abf88e27 Content-Type: text/plain; charset=UTF-8 forgot to include everyone on this response - sorry. 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? >> >> Yes, do it!!! > > Also; while we're talking about it; can we do something about the default > socket location OR change configuring it in 3 places for pdo_mysql; mysqli; > mysql?! Maybe a mysqlnd_default_socket - or autoconf magic (for instance > RedHat/CentOS MySQL provided RPM's default to: /var/lib/mysql/mysql.sock; > Ubuntu/Debian default is: /var/run/mysqld/mysqld.sock, lastly is the current > php default and mysql source default of /tmp/mysql.sock). It seems like it > could do a quick check either by platform or check to see if it is already > there to change the default on build. Only reason for bringing this up is > that I've been burned a few times on this one (for instance pdo_mysql is > configured but mysqli was not for the default socket locations). > > Regards, > > Mike > --20cf3071c798a5a73304abf88e27--