MFH: Added new macro for check void parameters.

(deprecating ZEND_WRONG_PARAM_COUNT for this cases)
This commit is contained in:
Felipe Pena 2008-03-10 22:02:41 +00:00
parent 725b31fc6c
commit cc2b17d51d
3 changed files with 14 additions and 13 deletions

View file

@ -182,8 +182,8 @@ ZEND_METHOD(error_exception, __construct)
/* }}} */
#define DEFAULT_0_PARAMS \
if (ZEND_NUM_ARGS() > 0) { \
ZEND_WRONG_PARAM_COUNT(); \
if (zend_parse_parameters_none() == FAILURE) { \
return; \
}
static void _default_exception_get_entry(zval *object, char *name, int name_len, zval *return_value TSRMLS_DC) /* {{{ */