@@ -2006,6 +2006,22 @@ PHP_METHOD(Memcached, quit)
2006
2006
}
2007
2007
/* }}} */
2008
2008
2009
+ /* {{{ Memcached::flushBuffers()
2010
+ Flush and senf buffered commands */
2011
+ PHP_METHOD (Memcached , flushBuffers )
2012
+ {
2013
+ memcached_return rc ;
2014
+ MEMC_METHOD_INIT_VARS ;
2015
+
2016
+ if (zend_parse_parameters_none () == FAILURE ) {
2017
+ return ;
2018
+ }
2019
+
2020
+ MEMC_METHOD_FETCH_OBJECT ;
2021
+ RETURN_BOOL (memcached_flush_buffers (m_obj -> memc ) == MEMCACHED_SUCCESS );
2022
+ }
2023
+ /* }}} */
2024
+
2009
2025
#if defined(LIBMEMCACHED_VERSION_HEX ) && LIBMEMCACHED_VERSION_HEX >= 0x00049000
2010
2026
/* {{{ Memcached::getLastErrorMessage()
2011
2027
Returns the last error message that occurred */
@@ -3547,6 +3563,9 @@ ZEND_END_ARG_INFO()
3547
3563
ZEND_BEGIN_ARG_INFO (arginfo_quit , 0 )
3548
3564
ZEND_END_ARG_INFO ()
3549
3565
3566
+ ZEND_BEGIN_ARG_INFO (arginfo_flushBuffers , 0 )
3567
+ ZEND_END_ARG_INFO ()
3568
+
3550
3569
ZEND_BEGIN_ARG_INFO (arginfo_getServerByKey , 0 )
3551
3570
ZEND_ARG_INFO (0 , server_key )
3552
3571
ZEND_END_ARG_INFO ()
@@ -3649,6 +3668,8 @@ static zend_function_entry memcached_class_methods[] = {
3649
3668
MEMC_ME (getServerByKey , arginfo_getServerByKey )
3650
3669
MEMC_ME (resetServerList , arginfo_resetServerList )
3651
3670
MEMC_ME (quit , arginfo_quit )
3671
+ MEMC_ME (flushBuffers , arginfo_flushBuffers )
3672
+
3652
3673
3653
3674
#if defined(LIBMEMCACHED_VERSION_HEX ) && LIBMEMCACHED_VERSION_HEX >= 0x00049000
3654
3675
MEMC_ME (getLastErrorMessage , arginfo_getLastErrorMessage )
0 commit comments