mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
even better fix
This commit is contained in:
parent
5373a3949c
commit
2a9e82d020
1 changed files with 3 additions and 3 deletions
|
@ -148,13 +148,13 @@ PHPAPI unsigned int mysqlnd_plugin_register_ex(struct st_mysqlnd_plugin_header *
|
|||
if (plugin) {
|
||||
if (plugin->plugin_api_version == MYSQLND_PLUGIN_API_VERSION) {
|
||||
zend_hash_update(&mysqlnd_registered_plugins, plugin->plugin_name, strlen(plugin->plugin_name) + 1, &plugin, sizeof(void *), NULL);
|
||||
return mysqlnd_plugins_counter++;
|
||||
} else {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Plugin API version mismatch while loading plugin %s. Expected %d, got %d",
|
||||
plugin->plugin_name, MYSQLND_PLUGIN_API_VERSION, plugin->plugin_api_version);
|
||||
plugin->plugin_name, MYSQLND_PLUGIN_API_VERSION, plugin->plugin_api_version);
|
||||
return 0xCAFE;
|
||||
}
|
||||
}
|
||||
return 0xCAFE;
|
||||
return mysqlnd_plugins_counter++;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue