mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Rename prefixed mysqlnd functions - prefixed with undescore, which were
accessible through a macro. Also removing the access macros. These prefixed functions were used, similarly to many functions in Zend2, because of TSRMLS - the macro was adding the the tsrm pointer to the call. However, as in Zend3 no TSRM pointers are passed down the stack, because of the usage of cached TSRM pointer in a real thread local variable, these macros and prefixed naming have lost their purpose.
This commit is contained in:
parent
ed0f134a64
commit
871ff65fd1
4 changed files with 14 additions and 20 deletions
|
@ -153,20 +153,19 @@ PHPAPI unsigned int mysqlnd_plugin_register_ex(struct st_mysqlnd_plugin_header *
|
|||
|
||||
|
||||
/* {{{ mysqlnd_plugin_find */
|
||||
PHPAPI void * _mysqlnd_plugin_find(const char * const name)
|
||||
PHPAPI void * mysqlnd_plugin_find(const char * const name)
|
||||
{
|
||||
void * plugin;
|
||||
if ((plugin = zend_hash_str_find_ptr(&mysqlnd_registered_plugins, name, strlen(name))) != NULL) {
|
||||
return plugin;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* {{{ _mysqlnd_plugin_apply_with_argument */
|
||||
PHPAPI void _mysqlnd_plugin_apply_with_argument(apply_func_arg_t apply_func, void * argument)
|
||||
/* {{{ mysqlnd_plugin_apply_with_argument */
|
||||
PHPAPI void mysqlnd_plugin_apply_with_argument(apply_func_arg_t apply_func, void * argument)
|
||||
{
|
||||
zval *val;
|
||||
int result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue