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/dom/php_dom.h | |
| parent | 8e08965be64607704315293c6bea73c434ace5f3 (diff) | |
| download | php-git-a1e8d340c3fe0c889146332fe2e2b70a11980685.tar.gz | |
New macro for check void parameters
Diffstat (limited to 'ext/dom/php_dom.h')
| -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 b709345863..84aa11a254 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; \ } |
