Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55309 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91629 invoked from network); 8 Sep 2011 16:59:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2011 16:59:35 -0000 Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.196 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.196 relay4-d.mail.gandi.net Linux 2.6 Received: from [217.70.183.196] ([217.70.183.196:45550] helo=relay4-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/E1-06796-574F86E4 for ; Thu, 08 Sep 2011 12:59:34 -0400 X-Originating-IP: 217.70.178.129 Received: from mfilter12-d.gandi.net (mfilter12-d.gandi.net [217.70.178.129]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 3BE1E17207E for ; Thu, 8 Sep 2011 18:59:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter12-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter12-d.gandi.net (mfilter12-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id Si2VFZXK+jjF for ; Thu, 8 Sep 2011 18:59:29 +0200 (CEST) X-Originating-IP: 82.241.130.121 Received: from lovelock.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: remicollet@famillecollet.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id 8DB0F172099 for ; Thu, 8 Sep 2011 18:59:29 +0200 (CEST) Message-ID: <4E68F471.9000308@fedoraproject.org> Date: Thu, 08 Sep 2011 18:59:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: PHP Internals References: <4E61EE07.8030402@lsces.co.uk> <1315053753.2311.15.camel@guybrush> <1315241561.2119.15.camel@guybrush> In-Reply-To: <1315241561.2119.15.camel@guybrush> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Why does mysqlnd get included in Linux 'core' PHP5 packages? From: remi@fedoraproject.org (Remi Collet) Le 05/09/2011 18:52, Johannes Schl=C3=BCter a =C3=A9crit : > On Sat, 2011-09-03 at 14:42 +0200, Johannes Schl=C3=BCter wrote: >> mysqlnd is not yet default from php.net side but SuSE has chosen to do >> so. Now there is one consequence: If mysqlnd is used it will be built >> statically in PHP, even on Unix, even if the other MySQL modules are >> built shared. This can be fixed by adding a specific configuration >> option to enforce mysqlnd being build as its own shared .so, too. >=20 > I didn't get it done today, but I created a bug for tracking this. > https://bugs.php.net/bug.php?id=3D55609 Great thanks. Test report : Apache SAPI build with --enable-mysqlnd=3Dshared \ --with-mysql=3Dshared,mysqlnd \ --with-mysqli=3Dshared,mysqlnd \ --enable-pdo=3Dshared \ --with-pdo-mysql=3Dshared,mysqlnd \ CLI SAPI build with --with-mysql=3Dshared,%{_prefix} \ --with-mysqli=3Dshared,%{mysql_config} \ --enable-pdo=3Dshared \ --with-pdo-mysql=3Dshared,%{mysql_config} \ With, in /etc/php.d/mysqlnd.ini extension=3Dmysqlnd.so extension=3Dmysqlnd_mysql.so extension=3Dmysqlnd_mysqli.so extension=3Dmysqlnd_pdo_mysql.so Apache and CLI load and works fine. With, in /etc/php.d/mysql.ini extension=3Dmysql.so extension=3Dmysqli.so extension=3Dpdo_mysql.so Apache and CLI load and works fine. You probably note that I have to rename the extensions (mysql.so/mysqlnd_mysql.so) to be able to distinguish them in the install tree. I will, probably, use this solution, for php 5.4 in fedora. User will have to choose between php-mysql and php-mysqlnd packages. Remi.