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/dom | |
parent | cc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff) | |
download | php-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz |
MFH: New way for check void parameters
Diffstat (limited to 'ext/dom')
-rw-r--r-- | ext/dom/php_dom.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dom/php_dom.h b/ext/dom/php_dom.h index 5408edbfa2..60117d4680 100644 --- a/ext/dom/php_dom.h +++ b/ext/dom/php_dom.h @@ -138,8 +138,7 @@ entry = zend_register_internal_class_ex(&ce, parent_ce, NULL TSRMLS_CC); } #define DOM_NO_ARGS() \ - if (ZEND_NUM_ARGS() != 0) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Expects exactly 0 parameters, %d given", ZEND_NUM_ARGS()); \ + if (zend_parse_parameters_none() == FAILURE) { \ return; \ } |