@@ -1938,6 +1938,40 @@ PHP_METHOD(Memcached, getServerByKey)
1938
1938
}
1939
1939
/* }}} */
1940
1940
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
+
1941
1975
/* {{{ Memcached::getStats()
1942
1976
Returns statistics for the memcache servers */
1943
1977
PHP_METHOD (Memcached , getStats )
@@ -3357,6 +3391,12 @@ ZEND_END_ARG_INFO()
3357
3391
ZEND_BEGIN_ARG_INFO (arginfo_getServerList , 0 )
3358
3392
ZEND_END_ARG_INFO ()
3359
3393
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
+
3360
3400
ZEND_BEGIN_ARG_INFO (arginfo_getServerByKey , 0 )
3361
3401
ZEND_ARG_INFO (0 , server_key )
3362
3402
ZEND_END_ARG_INFO ()
@@ -3441,6 +3481,8 @@ static zend_function_entry memcached_class_methods[] = {
3441
3481
MEMC_ME (addServers , arginfo_addServers )
3442
3482
MEMC_ME (getServerList , arginfo_getServerList )
3443
3483
MEMC_ME (getServerByKey , arginfo_getServerByKey )
3484
+ MEMC_ME (resetServerList , arginfo_resetServerList )
3485
+ MEMC_ME (quit , arginfo_quit )
3444
3486
3445
3487
MEMC_ME (getStats , arginfo_getStats )
3446
3488
MEMC_ME (getVersion , arginfo_getVersion )
0 commit comments