diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-06-13 23:47:20 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-06-13 23:47:20 +0200 |
commit | e77077edebfb8510f5659947bbb61636549172c9 (patch) | |
tree | 4abaea69aa0440375f889c6166e55521f336d240 /ext/intl/breakiterator/breakiterator_methods.cpp | |
parent | ea592e6b6c43b7c5ebedf63254b8088f741e276c (diff) | |
download | php-git-e77077edebfb8510f5659947bbb61636549172c9.tar.gz |
Make $locale parameter to BreakIterator ctors optional
It's documented as such and already accepts null.
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_methods.cpp')
-rw-r--r-- | ext/intl/breakiterator/breakiterator_methods.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/breakiterator/breakiterator_methods.cpp b/ext/intl/breakiterator/breakiterator_methods.cpp index 0363198f06..399bafef9f 100644 --- a/ext/intl/breakiterator/breakiterator_methods.cpp +++ b/ext/intl/breakiterator/breakiterator_methods.cpp @@ -51,7 +51,7 @@ static void _breakiter_factory(const char *func_name, UErrorCode status = UErrorCode(); intl_error_reset(NULL); - if (zend_parse_parameters(ZEND_NUM_ARGS(), "s!", + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s!", &locale_str, &dummy) == FAILURE) { spprintf(&msg, 0, "%s: bad arguments", func_name); intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR, msg, 1); |