MySQL Native Driver (
Mysqlnd
)
2552
20.7.5.7.4. The mysqlnd plugin API
Copyright 1997-2012 the PHP Documentation Group. [2230]
The following is a list of functions provided in the
mysqlnd
plugin API:
• mysqlnd_plugin_register()
• mysqlnd_plugin_count()
• mysqlnd_plugin_get_plugin_connection_data()
• mysqlnd_plugin_get_plugin_result_data()
• mysqlnd_plugin_get_plugin_stmt_data()
• mysqlnd_plugin_get_plugin_net_data()
• mysqlnd_plugin_get_plugin_protocol_data()
• mysqlnd_conn_get_methods()
• mysqlnd_result_get_methods()
• mysqlnd_result_meta_get_methods()
• mysqlnd_stmt_get_methods()
• mysqlnd_net_get_methods()
• mysqlnd_protocol_get_methods()
There is no formal definition of what a plugin is and how a plugin mechanism works.
Components often found in plugins mechanisms are:
• A plugin manager
• A plugin API
• Application services (or modules)
• Application service APIs (or module APIs)
The
mysqlnd
plugin concept employs these features, and additionally enjoys an open architecture.
No Restrictions
A plugin has full access to the inner workings of
mysqlnd
. There are no security limits or restrictions.
Everything can be overwritten to implement friendly or hostile algorithms. It is recommended you only
deploy plugins from a trusted source.
As discussed previously, plugins can use pointers freely. These pointers are not restricted in any way,
and can point into another plugin's data. Simple offset arithmetic can be used to read another plugin's
data.
It is recommended that you write cooperative plugins, and that you always call the parent method. The
plugins should always cooperate with
mysqlnd
itself.
Table 20.71. Issues: an example of chaining and cooperation
Extension
mysqlnd.query() pointer
call stack if calling parent
ext/mysqlnd
mysqlnd.query()
mysqlnd.query
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...