diff options
author | Andrey Hristov <andrey@php.net> | 2015-04-07 21:48:08 +0200 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2015-04-07 21:48:08 +0200 |
commit | 871ff65fd161eb9f96577ae0a35599075eabc7cc (patch) | |
tree | 9e4e47c5788d1a0bd83166e0e72246a81179d483 /ext/mysqlnd/mysqlnd_plugin.c | |
parent | ed0f134a642e7caed94966450435ed5e2a21f426 (diff) | |
download | php-git-871ff65fd161eb9f96577ae0a35599075eabc7cc.tar.gz |
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.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_plugin.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_plugin.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/mysqlnd/mysqlnd_plugin.c b/ext/mysqlnd/mysqlnd_plugin.c index d0709282f1..094bd554ae 100644 --- a/ext/mysqlnd/mysqlnd_plugin.c +++ b/ext/mysqlnd/mysqlnd_plugin.c @@ -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; |