File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ PHP NEWS
24
24
. Added SpoofChecker::setAllowedChars to set unicode chars ranges.
25
25
(David Carlier)
26
26
27
+ - Intl:
28
+ . Fixed bug GH-15087 (IntlChar::foldCase()'s $option is not optional). (cmb)
29
+
27
30
- Opcache:
28
31
. Fixed bug GH-13775 (Memory leak possibly related to opcache SHM placement).
29
32
(Arnaud)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ GH-15087 (IntlChar::foldCase()'s $option is not optional)
3
+ --EXTENSIONS--
4
+ intl
5
+ --FILE--
6
+ <?php
7
+ var_dump (IntlChar::foldCase ('I ' ));
8
+ ?>
9
+ --EXPECT--
10
+ string(1) "i"
Original file line number Diff line number Diff line change @@ -401,8 +401,9 @@ IC_METHOD(foldCase) {
401
401
zend_string * string_codepoint ;
402
402
zend_long int_codepoint = 0 ;
403
403
404
- ZEND_PARSE_PARAMETERS_START (2 , 2 )
404
+ ZEND_PARSE_PARAMETERS_START (1 , 2 )
405
405
Z_PARAM_STR_OR_LONG (string_codepoint , int_codepoint )
406
+ Z_PARAM_OPTIONAL
406
407
Z_PARAM_LONG (options )
407
408
ZEND_PARSE_PARAMETERS_END ();
408
409
You can’t perform that action at this time.
0 commit comments