1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix GH-15087 IntlChar::foldCase()'s $option is not optional
This commit is contained in:
Christoph M. Becker
2024-07-24 16:48:29 +02:00
3 changed files with 13 additions and 1 deletions

1
NEWS
View File

@@ -23,6 +23,7 @@ PHP NEWS
- Intl:
. Added SpoofChecker::setAllowedChars to set unicode chars ranges.
(David Carlier)
. Fixed bug GH-15087 (IntlChar::foldCase()'s $option is not optional). (cmb)
- Opcache:
. Fixed bug GH-13775 (Memory leak possibly related to opcache SHM placement).

View File

@@ -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"

View File

@@ -401,8 +401,9 @@ IC_METHOD(foldCase) {
zend_string *string_codepoint;
zend_long int_codepoint = 0;
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();