Req #55609 [Opn->Asn]: mysqlnd cannot be built shared

From: Date: Mon, 05 Sep 2011 16:48:49 +0000
Subject: Req #55609 [Opn->Asn]: mysqlnd cannot be built shared
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163304@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55609&edit=1

 ID:                 55609
 Updated by:         johannes@php.net
 Reported by:        johannes@php.net
 Summary:            mysqlnd cannot be built shared
-Status:             Open
+Status:             Assigned
 Type:               Feature/Change Request
 Package:            MySQL related
 Operating System:   *
 PHP Version:        trunk-SVN-2011-09-05 (SVN)
-Assigned To:        
+Assigned To:        mysql
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2011-09-05 16:46:47] 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:45:54] 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.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55609&edit=1


Thread (7 messages)

« previous php.bugs (#163304) next »