diff options
| author | Felipe Pena <felipe@php.net> | 2008-02-28 14:16:25 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-02-28 14:16:25 +0000 |
| commit | a1e8d340c3fe0c889146332fe2e2b70a11980685 (patch) | |
| tree | 07b90a28be336f68ccdd644d73739163573e292f /ext/imap/php_imap.c | |
| parent | 8e08965be64607704315293c6bea73c434ace5f3 (diff) | |
| download | php-git-a1e8d340c3fe0c889146332fe2e2b70a11980685.tar.gz | |
New macro 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 21ced9043a..a6db72647a 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3657,8 +3657,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) { @@ -3684,8 +3684,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) { @@ -3711,8 +3711,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) { |
