@@ -1938,6 +1938,40 @@ PHP_METHOD(Memcached, getServerByKey)
19381938}
19391939/* }}} */
19401940
1941+ /* {{{ Memcached::resetServerList()
1942+ Reset the server list in use */
1943+ PHP_METHOD (Memcached , resetServerList )
1944+ {
1945+ MEMC_METHOD_INIT_VARS ;
1946+
1947+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "" ) == FAILURE ) {
1948+ return ;
1949+ }
1950+
1951+ MEMC_METHOD_FETCH_OBJECT ;
1952+
1953+ memcached_servers_reset (m_obj -> memc );
1954+ RETURN_TRUE ;
1955+ }
1956+ /* }}} */
1957+
1958+ /* {{{ Memcached::quit()
1959+ Close any open connections */
1960+ PHP_METHOD (Memcached , quit )
1961+ {
1962+ MEMC_METHOD_INIT_VARS ;
1963+
1964+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "" ) == FAILURE ) {
1965+ return ;
1966+ }
1967+
1968+ MEMC_METHOD_FETCH_OBJECT ;
1969+
1970+ memcached_quit (m_obj -> memc );
1971+ RETURN_TRUE ;
1972+ }
1973+ /* }}} */
1974+
19411975/* {{{ Memcached::getStats()
19421976 Returns statistics for the memcache servers */
19431977PHP_METHOD (Memcached , getStats )
@@ -3357,6 +3391,12 @@ ZEND_END_ARG_INFO()
33573391ZEND_BEGIN_ARG_INFO (arginfo_getServerList , 0 )
33583392ZEND_END_ARG_INFO ()
33593393
3394+ ZEND_BEGIN_ARG_INFO (arginfo_resetServerList , 0 )
3395+ ZEND_END_ARG_INFO ()
3396+
3397+ ZEND_BEGIN_ARG_INFO (arginfo_quit , 0 )
3398+ ZEND_END_ARG_INFO ()
3399+
33603400ZEND_BEGIN_ARG_INFO (arginfo_getServerByKey , 0 )
33613401 ZEND_ARG_INFO (0 , server_key )
33623402ZEND_END_ARG_INFO ()
@@ -3441,6 +3481,8 @@ static zend_function_entry memcached_class_methods[] = {
34413481 MEMC_ME (addServers , arginfo_addServers )
34423482 MEMC_ME (getServerList , arginfo_getServerList )
34433483 MEMC_ME (getServerByKey , arginfo_getServerByKey )
3484+ MEMC_ME (resetServerList , arginfo_resetServerList )
3485+ MEMC_ME (quit , arginfo_quit )
34443486
34453487 MEMC_ME (getStats , arginfo_getStats )
34463488 MEMC_ME (getVersion , arginfo_getVersion )
0 commit comments