Bug #75684 [NEW]: In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
| From: | sergio dot tabanelli at gmail dot com | Date: | Thu, 14 Dec 2017 09:23:58 +0000 |
| Subject: | Bug #75684 [NEW]: In mysqlnd_ext_plugin.h the plugin methods family has no external visibility | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213091@lists.php.net to get a copy of this message | ||
From: sergio dot tabanelli at gmail dot com
Operating system: ALL
PHP version: 7.1.12
Package: MySQL related
Bug Type: Bug
Bug description:In mysqlnd_ext_plugin.h the plugin methods family has no external visibility
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 bug report at https://bugs.php.net/bug.php?id=75684&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75684&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75684&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75684&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75684&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75684&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75684&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75684&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75684&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75684&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75684&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75684&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75684&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75684&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75684&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75684&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75684&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75684&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75684&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75684&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75684&r=mysqlcfg