[PR #1051] [MERGED] Unicode Support: Replace Standard PHP String Functions with Multibyte Counterparts #1228

Closed
opened 2026-02-25 21:37:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1051
Author: @kambereBr
Created: 5/26/2024
Status: Merged
Merged: 7/10/2024
Merged by: @kroky

Base: masterHead: unicode-support


📝 Commits (10+)

  • c08cac8 Replace strlen with mb_strlen for Multibyte String Handling
  • 93b8578 Replace strpos with mb_strpos for Multibyte String Handling
  • f420627 Replace strrpos with mb_strrpos for Multibyte String Handling
  • ee667e6 Replace substr with mb_substr for Multibyte String Handling
  • 69b140d Replace strtolower with mb_strtolower for Multibyte String Handling
  • d134bd2 Use encodings when processing binary data
  • 365e73c Replace strtoupper with mb_strtoupper for Multibyte String Handling
  • 918b29c Replace stripos with mb_stripos for Multibyte String Handling
  • e8b174f Replace str_ireplace with mb_eregi_replace for Multibyte String Handling
  • 6786846 Replace str_split with mb_str_split for Multibyte String Handling

📊 Changes

57 files changed (+350 additions, -350 deletions)

View changed files

📝 lib/config.php (+3 -3)
📝 lib/crypt.php (+1 -1)
📝 lib/db.php (+1 -1)
📝 lib/dispatch.php (+1 -1)
📝 lib/environment.php (+2 -2)
📝 lib/format.php (+2 -2)
📝 lib/module.php (+3 -3)
📝 lib/request.php (+5 -5)
📝 lib/scram.php (+6 -6)
📝 lib/session_base.php (+1 -1)
📝 lib/webdav_formats.php (+18 -18)
📝 modules/2fa/modules.php (+1 -1)
📝 modules/advanced_search/modules.php (+3 -3)
📝 modules/calendar/hm-calendar.php (+2 -2)
📝 modules/carddav_contacts/hm-carddav.php (+2 -2)
📝 modules/contacts/hm-contacts.php (+6 -6)
📝 modules/contacts/modules.php (+2 -2)
📝 modules/core/functions.php (+7 -7)
📝 modules/core/handler_modules.php (+2 -2)
📝 modules/core/message_functions.php (+12 -12)

...and 37 more files

📄 Description

This PR refactors standard PHP string functions to their multibyte counterparts to improve Unicode support.

Related PR: https://github.com/cypht-org/cypht/pull/1012


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/1051 **Author:** [@kambereBr](https://github.com/kambereBr) **Created:** 5/26/2024 **Status:** ✅ Merged **Merged:** 7/10/2024 **Merged by:** [@kroky](https://github.com/kroky) **Base:** `master` ← **Head:** `unicode-support` --- ### 📝 Commits (10+) - [`c08cac8`](https://github.com/cypht-org/cypht/commit/c08cac8a18a8ac038b71ed237ac2c26636861dd3) Replace strlen with mb_strlen for Multibyte String Handling - [`93b8578`](https://github.com/cypht-org/cypht/commit/93b8578695b5a1d4d019e78745b2864d33d617dc) Replace strpos with mb_strpos for Multibyte String Handling - [`f420627`](https://github.com/cypht-org/cypht/commit/f420627d103347143f7d290f2376e332817b532f) Replace strrpos with mb_strrpos for Multibyte String Handling - [`ee667e6`](https://github.com/cypht-org/cypht/commit/ee667e6fc37528ae99843477d4edb127f3df2c2c) Replace substr with mb_substr for Multibyte String Handling - [`69b140d`](https://github.com/cypht-org/cypht/commit/69b140d68d4765e2588149a498e4114127b6bf1b) Replace strtolower with mb_strtolower for Multibyte String Handling - [`d134bd2`](https://github.com/cypht-org/cypht/commit/d134bd2fdbd049bbee9d109eb46eebac58151092) Use encodings when processing binary data - [`365e73c`](https://github.com/cypht-org/cypht/commit/365e73c15c88f60945e40a115db4a7e579416389) Replace strtoupper with mb_strtoupper for Multibyte String Handling - [`918b29c`](https://github.com/cypht-org/cypht/commit/918b29cfdea076b1c0ee9d9e2ca19337921ccc16) Replace stripos with mb_stripos for Multibyte String Handling - [`e8b174f`](https://github.com/cypht-org/cypht/commit/e8b174fdd39d329041202367cfa51d2e8de5b55a) Replace str_ireplace with mb_eregi_replace for Multibyte String Handling - [`6786846`](https://github.com/cypht-org/cypht/commit/6786846433329ce31fcf75a80f8524f6ccb181ab) Replace str_split with mb_str_split for Multibyte String Handling ### 📊 Changes **57 files changed** (+350 additions, -350 deletions) <details> <summary>View changed files</summary> 📝 `lib/config.php` (+3 -3) 📝 `lib/crypt.php` (+1 -1) 📝 `lib/db.php` (+1 -1) 📝 `lib/dispatch.php` (+1 -1) 📝 `lib/environment.php` (+2 -2) 📝 `lib/format.php` (+2 -2) 📝 `lib/module.php` (+3 -3) 📝 `lib/request.php` (+5 -5) 📝 `lib/scram.php` (+6 -6) 📝 `lib/session_base.php` (+1 -1) 📝 `lib/webdav_formats.php` (+18 -18) 📝 `modules/2fa/modules.php` (+1 -1) 📝 `modules/advanced_search/modules.php` (+3 -3) 📝 `modules/calendar/hm-calendar.php` (+2 -2) 📝 `modules/carddav_contacts/hm-carddav.php` (+2 -2) 📝 `modules/contacts/hm-contacts.php` (+6 -6) 📝 `modules/contacts/modules.php` (+2 -2) 📝 `modules/core/functions.php` (+7 -7) 📝 `modules/core/handler_modules.php` (+2 -2) 📝 `modules/core/message_functions.php` (+12 -12) _...and 37 more files_ </details> ### 📄 Description This PR refactors standard PHP string functions to their multibyte counterparts to improve Unicode support. Related PR: https://github.com/cypht-org/cypht/pull/1012 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:37:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#1228
No description provided.