svn: /pecl/mysqlnd_ms/trunk/ php_mysqlnd_ms.c
| From: | Ulf Wendel | Date: | Wed, 07 Dec 2011 17:15:27 +0000 |
| Subject: | svn: /pecl/mysqlnd_ms/trunk/ php_mysqlnd_ms.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-17304@lists.php.net to get a copy of this message | ||
uw Wed, 07 Dec 2011 17:15:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320588
Log:
Removing set_user_pick_server code. Function was deprecated in 1.1 and compiled out. Function has
been replaced with filter.
Changed paths:
U pecl/mysqlnd_ms/trunk/php_mysqlnd_ms.c
Modified: pecl/mysqlnd_ms/trunk/php_mysqlnd_ms.c
===================================================================
--- pecl/mysqlnd_ms/trunk/php_mysqlnd_ms.c 2011-12-07 17:06:13 UTC (rev 320587)
+++ pecl/mysqlnd_ms/trunk/php_mysqlnd_ms.c 2011-12-07 17:15:27 UTC (rev 320588)
@@ -88,7 +88,6 @@
mysqlnd_ms_globals->enable = FALSE;
mysqlnd_ms_globals->force_config_usage = FALSE;
mysqlnd_ms_globals->ini_file = NULL;
- mysqlnd_ms_globals->user_pick_server = NULL;
mysqlnd_ms_globals->collect_statistics = FALSE;
mysqlnd_ms_globals->multi_master = FALSE;
mysqlnd_ms_globals->disable_rw_split = FALSE;
@@ -120,18 +119,6 @@
/* }}} */
-/* {{{ PHP_RSHUTDOWN_FUNCTION */
-PHP_RSHUTDOWN_FUNCTION(mysqlnd_ms)
-{
- if (MYSQLND_MS_G(user_pick_server)) {
- zval_ptr_dtor(&MYSQLND_MS_G(user_pick_server));
- MYSQLND_MS_G(user_pick_server) = NULL;
- }
- return SUCCESS;
-}
-/* }}} */
-
-
/* {{{ PHP_INI
*/
PHP_INI_BEGIN()
@@ -238,55 +225,6 @@
}
/* }}} */
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqlnd_ms_set_user_pick_server, 0, 0, 1)
- ZEND_ARG_INFO(0, pick_server_cb)
-ZEND_END_ARG_INFO()
-
-
-#ifdef REINTRODUCE_LATER
-/* {{{ mysqlnd_ms_set_user_pick_server */
-static void
-mysqlnd_ms_set_user_pick_server_aux(INTERNAL_FUNCTION_PARAMETERS)
-{
- zval * arg = NULL;
- char * name;
-
- DBG_ENTER("mysqlnd_ms_set_user_pick_server_aux");
-
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &arg) == FAILURE) {
- DBG_VOID_RETURN;
- }
-
- if (!zend_is_callable(arg, 0, &name TSRMLS_CC)) {
- php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Argument is not a valid
callback");
- efree(name);
- RETVAL_FALSE;
- DBG_VOID_RETURN;
- }
- DBG_INF_FMT("name=%s", name);
- efree(name);
-
- if (MYSQLND_MS_G(user_pick_server) != NULL) {
- zval_ptr_dtor(&MYSQLND_MS_G(user_pick_server));
- }
- MYSQLND_MS_G(user_pick_server) = arg;
- Z_ADDREF_P(arg);
-
- RETVAL_TRUE;
- DBG_VOID_RETURN;
-}
-/* }}} */
-
-
-/* {{{ proto bool mysqlnd_ms_set_user_pick_server(string is_select)
- Sets use_pick function callback */
-static PHP_FUNCTION(mysqlnd_ms_set_user_pick_server)
-{
- mysqlnd_ms_set_user_pick_server_aux(INTERNAL_FUNCTION_PARAM_PASSTHRU);
-}
-/* }}} */
-#endif
-
ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqlnd_ms_match_wild, 0, 0, 2)
ZEND_ARG_INFO(0, haystack)
ZEND_ARG_INFO(0, wild)
@@ -615,9 +553,6 @@
/* {{{ mysqlnd_ms_functions */
static const zend_function_entry mysqlnd_ms_functions[] = {
-#ifdef REINTRODUCE_LATER
- PHP_FE(mysqlnd_ms_set_user_pick_server, arginfo_mysqlnd_ms_set_user_pick_server)
-#endif
PHP_FE(mysqlnd_ms_match_wild, arginfo_mysqlnd_ms_match_wild)
PHP_FE(mysqlnd_ms_query_is_select, arginfo_mysqlnd_ms_query_is_select)
PHP_FE(mysqlnd_ms_get_stats, arginfo_mysqlnd_ms_get_stats)
@@ -641,7 +576,7 @@
PHP_MINIT(mysqlnd_ms),
PHP_MSHUTDOWN(mysqlnd_ms),
PHP_RINIT(mysqlnd_ms),
- PHP_RSHUTDOWN(mysqlnd_ms),
+ NULL,
PHP_MINFO(mysqlnd_ms),
MYSQLND_MS_VERSION,
PHP_MODULE_GLOBALS(mysqlnd_ms),