php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #55609 mysqlnd cannot be built shared
Submitted: 2011-09-05 16:45 UTC Modified: 2011-10-18 18:56 UTC
From: [email protected] Assigned: andrey (profile)
Status: Closed Package: MySQL related
PHP Version: trunk-SVN-2011-09-05 (SVN) OS: *
Private report: No CVE-ID: None
 [2011-09-05 16:45 UTC] [email protected]
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.

Patches

mysqlnd_build_shared.diff (last revision 2011-09-05 18:25 UTC by [email protected])

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-05 16:46 UTC] [email protected]
The following patch has been added/updated:

Patch Name: mysqlnd_build_shared.diff
Revision:   1315241207
URL:        https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315241207
 [2011-09-05 16:48 UTC] [email protected]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
 [2011-09-05 16:48 UTC] [email protected]
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-05 18:23 UTC] [email protected]
The following patch has been added/updated:

Patch Name: mysqlnd_build_shared.diff
Revision:   1315247030
URL:        https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315247030
 [2011-09-05 18:25 UTC] [email protected]
The following patch has been added/updated:

Patch Name: mysqlnd_build_shared.diff
Revision:   1315247101
URL:        https://bugs.php.net/patch-display.php?bug=55609&patch=mysqlnd_build_shared.diff&revision=1315247101
 [2011-09-06 16:38 UTC] [email protected]
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] [email protected]
-Status: Assigned +Status: To be documented -Assigned To: mysql +Assigned To:
 [2011-09-06 16:41 UTC] [email protected]
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] [email protected]
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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2011-10-18 18:56 UTC] [email protected]
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrey
 [2012-04-18 09:49 UTC] [email protected]
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fca3b40d7b9f41252c1c436f049de4bb01e07f02
Log: - Fix bug #55609 (mysqlnd cannot be built shared)
 [2012-07-24 23:40 UTC] [email protected]
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fca3b40d7b9f41252c1c436f049de4bb01e07f02
Log: - Fix bug #55609 (mysqlnd cannot be built shared)
 [2013-11-17 09:36 UTC] [email protected]
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fca3b40d7b9f41252c1c436f049de4bb01e07f02
Log: - Fix bug #55609 (mysqlnd cannot be built shared)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 08:00:02 2025 UTC