diff options
author | Felipe Pena <felipe@php.net> | 2008-03-10 22:15:36 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-03-10 22:15:36 +0000 |
commit | 84a8bb038a26e254d6608662b16c254920388913 (patch) | |
tree | b57b590da90a01ff306fbef1a6baa794ebe0571e /ext/session/session.c | |
parent | cc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff) | |
download | php-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz |
MFH: New way for check void parameters
Diffstat (limited to 'ext/session/session.c')
-rw-r--r-- | ext/session/session.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 9727541a0f..b865254c06 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1411,8 +1411,8 @@ PHP_FUNCTION(session_set_cookie_params) Return the session cookie parameters */ PHP_FUNCTION(session_get_cookie_params) { - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } array_init(return_value); @@ -1763,8 +1763,8 @@ PHP_FUNCTION(session_encode) int len; char *enc; - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } enc = php_session_encode(&len TSRMLS_CC); @@ -1812,8 +1812,8 @@ PHP_FUNCTION(session_start) Destroy the current session and all data associated with it */ PHP_FUNCTION(session_destroy) { - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } if (php_session_destroy(TSRMLS_C) == SUCCESS) { |