diff options
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r-- | ext/date/php_date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index fdd7bc2930..ddb1cb85d8 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -298,8 +298,8 @@ struct _php_timezone_obj { php_date_obj *obj; \ DATE_SET_CONTEXT; \ if (object) { \ - if (ZEND_NUM_ARGS()) { \ - WRONG_PARAM_COUNT; \ + if (zend_parse_parameters_none() == FAILURE) { \ + return; \ } \ } else { \ if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, NULL, "O", &object, date_ce_date) == FAILURE) { \ |