25#if MYSQLND_DBG_ENABLED == 1
30enum mysqlnd_plugin_example_collected_stats
37static const MYSQLND_STRING mysqlnd_plugin_example_stats_values_names[EXAMPLE_STAT_LAST] =
51 "Andrey Hristov <andrey@php.net>",
54 mysqlnd_plugin_example_stats_values_names,
57 mysqlnd_example_plugin_end
70 DBG_ENTER(
"mysqlnd_example_plugin_end");
90static HashTable mysqlnd_registered_plugins;
92static unsigned int mysqlnd_plugins_counter = 0;
147 return mysqlnd_plugins_counter++;
156 if ((plugin = zend_hash_str_find_ptr(&mysqlnd_registered_plugins,
name,
strlen(
name))) !=
NULL) {
186 return mysqlnd_plugins_counter;
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format,...)
#define MYSQLND_PLUGIN_API_VERSION
#define MYSQLND_STR_W_LEN(str)
#define DBG_RETURN(value)
enum func_status enum_func_status
PHPAPI unsigned int mysqlnd_plugin_count(void)
PHPAPI unsigned int mysqlnd_plugin_register(void)
PHPAPI void mysqlnd_plugin_apply_with_argument(apply_func_arg_t apply_func, void *argument)
void mysqlnd_plugin_subsystem_init(void)
PHPAPI unsigned int mysqlnd_plugin_register_ex(struct st_mysqlnd_plugin_header *plugin)
PHPAPI void * mysqlnd_plugin_find(const char *const name)
void mysqlnd_plugin_subsystem_end(void)
int mysqlnd_plugin_end_apply_func(zval *el)
void mysqlnd_example_plugin_register(void)
PHPAPI void mysqlnd_stats_end(MYSQLND_STATS *stats, const bool persistent)
PHPAPI void mysqlnd_stats_init(MYSQLND_STATS **stats, const size_t statistic_count, const bool persistent)
struct st_mysqlnd_string MYSQLND_STRING
struct st_mysqlnd_stats MYSQLND_STATS
struct st_mysqlnd_plugin_header plugin_header
ZEND_API void ZEND_FASTCALL zend_hash_destroy(HashTable *ht)
ZEND_API void ZEND_FASTCALL zend_hash_apply(HashTable *ht, apply_func_t apply_func)
int(* apply_func_arg_t)(zval *pDest, void *argument)
#define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent)
#define ZEND_HASH_MAP_FOREACH_VAL(ht, _val)
#define ZEND_HASH_APPLY_STOP
#define ZEND_HASH_APPLY_REMOVE
#define ZEND_HASH_FOREACH_END()
struct _zend_array HashTable