summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/breakiterator_methods.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-06-13 23:48:28 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-06-13 23:48:28 +0200
commitd04a1e8d7001c857df84c66063d6b8d215cfae09 (patch)
treecc250c719ae1e2a3d9b8117ac8595df53a0a07a2 /ext/intl/breakiterator/breakiterator_methods.cpp
parentdd622f9ca9d032cafd324380586a4f6d55ff7a10 (diff)
parente77077edebfb8510f5659947bbb61636549172c9 (diff)
downloadphp-git-d04a1e8d7001c857df84c66063d6b8d215cfae09.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_methods.cpp')
-rw-r--r--ext/intl/breakiterator/breakiterator_methods.cpp2
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);