Skip to content

Commit 29f0ebb

Browse files
Call ZEND_PARSE_PARAMETERS_NONE in getErrorCode and getErrorMessage
1 parent 9236166 commit 29f0ebb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/intl/listformatter/listformatter_class.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ PHP_METHOD(IntlListFormatter, format)
186186
/* {{{ listformatter_getErrorCode */
187187
PHP_METHOD(IntlListFormatter, getErrorCode)
188188
{
189+
ZEND_PARSE_PARAMETERS_NONE();
190+
189191
ListFormatter_object *obj = Z_INTL_LISTFORMATTER_P(ZEND_THIS);
190192

191193
UErrorCode status = intl_error_get_code(LISTFORMATTER_ERROR_P(obj));
@@ -197,6 +199,8 @@ PHP_METHOD(IntlListFormatter, getErrorCode)
197199
/* {{{ listformatter_getErrorMessage */
198200
PHP_METHOD(IntlListFormatter, getErrorMessage)
199201
{
202+
ZEND_PARSE_PARAMETERS_NONE();
203+
200204
ListFormatter_object *obj = Z_INTL_LISTFORMATTER_P(ZEND_THIS);
201205

202206
zend_string *message = intl_error_get_message(LISTFORMATTER_ERROR_P(obj));

0 commit comments

Comments
 (0)