Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3506 invoked from network); 18 Aug 2009 17:21:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2009 17:21:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.134 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.134 mailout2.netbeat.de Linux 2.6 Received: from [83.243.58.134] ([83.243.58.134:42123] helo=mailout2.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/BF-22194-723EA8A4 for ; Tue, 18 Aug 2009 13:21:45 -0400 Received: (qmail 20688 invoked by uid 89); 18 Aug 2009 18:00:44 -0000 Received: from unknown (HELO ?192.168.178.26?) (postmaster%schlueters.de@84.154.99.156) by mailout2.netbeat.de with ESMTPA; 18 Aug 2009 18:00:44 -0000 To: Remi Collet Cc: PHP Internals In-Reply-To: <4A898F8E.3050509@FamilleCollet.com> References: <4A898F8E.3050509@FamilleCollet.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 18 Aug 2009 19:20:58 +0200 Message-ID: <1250616063.2156.40.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] mysqlnd as a shared extension ? From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Mon, 2009-08-17 at 19:12 +0200, Remi Collet wrote: > My goal will be to provides both solutions (libmysql and mysqlnd) to be > able to quickly switch from one to the other (for tests / benchmark) Like others said I'd go with different static builds - it's not like PHP would take ages to compile. Other than that: it should be possible to build PHP first with --with-mysql=shared,mysqlnd and then cd ext/mysql; phpize; ./configre; make clean; make and end up with a .so using mysqlnd and one using libmysql and then load one or the other. The mysqlnd core would still be static but shouldn't hurt while measuring. Didn't test this, though. Best is using different builds. johannes