Bug #75684 [Opn->Asn]: In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
| From: | andrey@php.net | Date: | Wed, 02 Jan 2019 08:57:18 +0000 |
| Subject: | Bug #75684 [Opn->Asn]: 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-218727@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
Updated by: andrey@php.net
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
+Status: Assigned
Type: Bug
Package: MySQL related
Operating System: ALL
PHP Version: 7.1.12
-Assigned To:
+Assigned To: andrey
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2019-01-02 01:27:05] xixi dot bu at 163 dot com
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
------------------------------------------------------------------------
[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