Skip to content

Commit

Permalink
use zend_parse_parameters_none
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe authored and colder committed May 5, 2014
1 parent 25d8426 commit 085b051
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions wr_weakmap.c
Expand Up @@ -337,7 +337,7 @@ static int wr_weakmap_object_count_elements(zval *object, long *count TSRMLS_DC)
*/
PHP_METHOD(WeakMap, __construct)
{
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}
}
Expand All @@ -350,7 +350,7 @@ PHP_METHOD(WeakMap, count)
zval *object = getThis();
wr_weakmap_object *intern;

if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}

Expand Down
8 changes: 4 additions & 4 deletions wr_weakref.c
Expand Up @@ -189,7 +189,7 @@ PHP_METHOD(WeakRef, get)
zval *object = getThis();
wr_weakref_object *intern;

if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}

Expand All @@ -210,7 +210,7 @@ PHP_METHOD(WeakRef, acquire)
zval *object = getThis();
wr_weakref_object *intern;

if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}

Expand All @@ -231,7 +231,7 @@ PHP_METHOD(WeakRef, release)
zval *object = getThis();
wr_weakref_object *intern;

if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}

Expand All @@ -252,7 +252,7 @@ PHP_METHOD(WeakRef, valid)
zval *object = getThis();
wr_weakref_object *intern;

if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "")) {
if (zend_parse_parameters_none() == FAILURE) {
return;
}

Expand Down

0 comments on commit 085b051

Please sign in to comment.