Skip to content

Conversation

@outdooracorn
Copy link
Member

The Laravel email column is a varchar(255) with a utf8mb4_unicode_ci collation1 which is case-insensitive. No further case normalization is required, and doing so will slow down the search.

Also, strtolower() only converts ASCII alphabetic characters2. mb_strtolower() is required to convert non-ASCII character as well.

Bug: T415640

The Laravel email column is a `varchar(255)` with a `utf8mb4_unicode_ci` collation[1] which is case-insensitive. No further case normalization is required, and doing so will slow down the search.

Also, `strtolower()` only converts ASCII alphabetic characters[2]. `mb_strtolower()` is required to convert non-ASCII character as well.

[1]: https://mariadb.com/docs/server/reference/data-types/string-data-types/character-sets/supported-character-sets-and-collations
[2]: https://www.php.net/manual/en/function.strtolower.php

Bug: T415640
@outdooracorn outdooracorn merged commit 501a140 into main Jan 27, 2026
6 checks passed
@outdooracorn outdooracorn deleted the remove-superfluous-case-normalization-logic branch January 27, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants