Re: Why does mysqlnd get included in Linux 'core' PHP5 packages?
| From: | Remi Collet | Date: | Thu, 08 Sep 2011 16:59:29 +0000 |
| Subject: | Re: Why does mysqlnd get included in Linux 'core' PHP5 packages? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55309@lists.php.net to get a copy of this message | ||
Le 05/09/2011 18:52, Johannes Schlüter a écrit :
> On Sat, 2011-09-03 at 14:42 +0200, Johannes Schlüter 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.
>
> I didn't get it done today, but I created a bug for tracking this.
> https://bugs.php.net/bug.php?id=55609
Great thanks.
Test report :
Apache SAPI build with
--enable-mysqlnd=shared \
--with-mysql=shared,mysqlnd \
--with-mysqli=shared,mysqlnd \
--enable-pdo=shared \
--with-pdo-mysql=shared,mysqlnd \
CLI SAPI build with
--with-mysql=shared,%{_prefix} \
--with-mysqli=shared,%{mysql_config} \
--enable-pdo=shared \
--with-pdo-mysql=shared,%{mysql_config} \
With, in /etc/php.d/mysqlnd.ini
extension=mysqlnd.so
extension=mysqlnd_mysql.so
extension=mysqlnd_mysqli.so
extension=mysqlnd_pdo_mysql.so
Apache and CLI load and works fine.
With, in /etc/php.d/mysql.ini
extension=mysql.so
extension=mysqli.so
extension=pdo_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.