Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ext/intl/uchar/tests/gh15087.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--TEST--
GH-15087 (IntlChar::foldCase()'s $option is not optional)
--EXTENSIONS--
intl
--FILE--
<?php
var_dump(IntlChar::foldCase('I'));
?>
--EXPECT--
string(1) "i"
3 changes: 2 additions & 1 deletion ext/intl/uchar/uchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ IC_METHOD(foldCase) {
zend_string *string_codepoint;
zend_long int_codepoint;

ZEND_PARSE_PARAMETERS_START(2, 2)
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STR_OR_LONG(string_codepoint, int_codepoint)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(options)
ZEND_PARSE_PARAMETERS_END();

Expand Down
Loading