mysqlnd cannot be built shared

 [2011-09-05 16:45 UTC] johannes@php.net

Description:
------------
When PHP is built with MySQL support usinge mysqlnd the mysqlnd module will always be compiled statically into PHP. mysqlnd can be enabled or disabled but not be built shared.

Test script:
---------------
./configure --with-mysql=mysqlnd,shared \
            --with-mysqli=mysqlnd,shared \
            --with-pdo-mysql=mysqlnd,shared
make

Expected result:
----------------
Option to build mysqlnd shared.

Actual result:
--------------
A mysqlnd.so should be created during make.

 [2011-09-05 16:48 UTC] johannes@php.net

-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql

 [2011-09-05 16:48 UTC] johannes@php.net

The attached patch adds an option --enable-mysqlnd which can be used like any other normal configure option. Therefore mysqlnd could be built even when no other MySQL extension was activated. It's also possible to use --enable-mysqlnd=shared

After applying this patch myslqnd won't compile shared due to issues in mysqlnd_compat.h

 [2011-09-06 16:38 UTC] johannes@php.net

Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&revision=316281
Log: - Fix bug #55609 (mysqlnd cannot be built shared)

# This adds an option --enable-mysqlnd to explicitly built mysqlnd, like any
# other extension it can be used with =shared to build mysqlnd shared;
# mysqlnd will implicitly enabled when requested from another extension

 [2011-09-06 16:41 UTC] johannes@php.net

-Status: Assigned +Status: To be documented -Assigned To: mysql +Assigned To:

 [2011-09-06 16:41 UTC] johannes@php.net

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2011-10-18 18:56 UTC] andrey@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: andrey