Bug #75684 [Com]: In mysqlnd_ext_plugin.h the plugin methods family has no external visibility

From: Date: Wed, 02 Jan 2019 01:27:05 +0000
Subject: Bug #75684 [Com]: In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218720@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75684&edit=1

 ID:                 75684
 Comment by:         xixi dot bu at 163 dot com
 Reported by:        sergio dot tabanelli at gmail dot com
 Summary:            In mysqlnd_ext_plugin.h the plugin methods family
                     has no external visibility
 Status:             Open
 Type:               Bug
 Package:            MySQL related
 Operating System:   ALL
 PHP Version:        7.1.12
 Block user comment: N
 Private report:     N

 New Comment:

Hi,

This bug has been opened for more than one year, may I ask what is the status now? I also enter the
same problem, may I ask is there any plan to fix it? 

Happy New Year,
Qianqian


Previous Comments:
------------------------------------------------------------------------
[2017-12-14 09:23:57] sergio dot tabanelli at gmail dot com

Description:
------------
All PHP > 7.1 versions has following declarations in ext/mysqlnd/mysqlnd_ext_plugin.h:

extern struct st_mysqlnd_plugin__plugin_area_getters mysqlnd_plugin_area_getters;
....
....
extern struct st_mysqlnd_plugin_methods_xetters mysqlnd_plugin_methods_xetters;

but these lack external visibility for myslnd plugin extensions, so any call to the 
mysqlnd_plugin_get_* and mysqlnd_*_get/set methods leads to "undefined symbol".

Declarations should be changed to:

PHPAPI extern struct st_mysqlnd_plugin__plugin_area_getters mysqlnd_plugin_area_getters;
....
....
PHPAPI extern struct st_mysqlnd_plugin_methods_xetters mysqlnd_plugin_methods_xetters;







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



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


Thread (4 messages)

« previous php.bugs (#218720) next »