php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
Submitted: 2017-12-14 09:23 UTC Modified: 2019-01-02 08:57 UTC
From: sergio dot tabanelli at gmail dot com Assigned: andrey (profile)
Status: Closed Package: MySQL related
PHP Version: 7.1.12 OS: ALL
Private report: No CVE-ID: None
 [2017-12-14 09:23 UTC] 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;






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-02 01:27 UTC] 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
 [2019-01-02 08:57 UTC] andrey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: andrey
 [2019-01-02 10:03 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b3f8e746af83b044ff86c0d864801929b1dd1d9
Log: Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
 [2019-01-02 10:03 UTC] ab@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC