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/imap/php_imap.c | |
parent | cc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff) | |
download | php-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz |
MFH: New way for check void parameters
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0e9740378e..aad980f7c7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3658,8 +3658,8 @@ PHP_FUNCTION(imap_alerts) { STRINGLIST *cur=NIL; - if (ZEND_NUM_ARGS() > 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } if (IMAPG(imap_alertstack) == NIL) { @@ -3685,8 +3685,8 @@ PHP_FUNCTION(imap_errors) { ERRORLIST *cur=NIL; - if (ZEND_NUM_ARGS() > 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } if (IMAPG(imap_errorstack) == NIL) { @@ -3712,8 +3712,8 @@ PHP_FUNCTION(imap_last_error) { ERRORLIST *cur=NIL; - if (ZEND_NUM_ARGS() > 0) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters_none() == FAILURE) { + return; } if (IMAPG(imap_errorstack) == NIL) { |