Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Add mb_ucfirst and mb_lcfirst functions #13161

Merged
merged 15 commits into from
Mar 20, 2024
Merged
Changes from 1 commit
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
5 changes: 4 additions & 1 deletion ext/mbstring/mbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -2973,7 +2973,10 @@ static void php_mb_ulcfirst(INTERNAL_FUNCTION_PARAMETERS, php_case_mode mode)
zend_string *head = mbstring_convert_case(mode, ZSTR_VAL(first), ZSTR_LEN(first), enc);

if (zend_string_equals(first, head)) {
RETVAL_STR(zend_string_copy(str));
zend_string_release_ex(first, false);
zend_string_release_ex(head, false);
zend_string_release_ex(second, false);
youkidearitai marked this conversation as resolved.
Show resolved Hide resolved
RETURN_STR(zend_string_copy(str));
}

zend_string_release_ex(first, false);
Expand Down
Loading