Bug #75684 [Com]: In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
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)