Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup parameter parsing

  • Loading branch information...
commit 77f0139485587e9f5e8089a043f4c1f867ecea8e 1 parent 276357a
@iliaal iliaal authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 php_memcached.c
View
22 php_memcached.c
@@ -991,7 +991,7 @@ PHP_METHOD(Memcached, fetch)
memcached_return status = MEMCACHED_SUCCESS;
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -1048,7 +1048,7 @@ PHP_METHOD(Memcached, fetchAll)
memcached_return status = MEMCACHED_SUCCESS;
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -1884,7 +1884,7 @@ PHP_METHOD(Memcached, getServerList)
memcached_server_function callbacks[1];
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -1944,7 +1944,7 @@ PHP_METHOD(Memcached, resetServerList)
{
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -1961,7 +1961,7 @@ PHP_METHOD(Memcached, quit)
{
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -1982,7 +1982,7 @@ PHP_METHOD(Memcached, getStats)
memcached_server_function callbacks[1];
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -2023,7 +2023,7 @@ PHP_METHOD(Memcached, getVersion)
memcached_server_function callbacks[1];
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -2374,7 +2374,7 @@ static PHP_METHOD(Memcached, getResultCode)
{
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -2390,7 +2390,7 @@ static PHP_METHOD(Memcached, getResultMessage)
{
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -2426,7 +2426,7 @@ static PHP_METHOD(Memcached, isPersistent)
{
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
@@ -2442,7 +2442,7 @@ static PHP_METHOD(Memcached, isPristine)
{
MEMC_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.