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: johannes@php.net 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] 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.

Patches

mysqlnd_build_shared.diff (last revision 2011-09-05 18:25 UTC by johannes@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-05 16:46 UTC] johannes@php.net
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] 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-05 18:23 UTC] johannes@php.net
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] johannes@php.net
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] 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
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] andrey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrey
 [2012-04-18 09:49 UTC] laruence@php.net
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] rasmus@php.net
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] laruence@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC