[PR #1281] [MERGED] [FIX]Fix deprecated warnings for preg_match() and mb_strtolower() in Webmail sieve filters #1403

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

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1281
Author: @Baraka24
Created: 10/14/2024
Status: Merged
Merged: 10/27/2024
Merged by: @kambereBr

Base: masterHead: fix-deprecated-warnings


📝 Commits (1)

  • 0fc8416 [FIX]Fix deprecated warnings for preg_match() and mb_strtolower() in Webmail sieve filters

📊 Changes

2 files changed (+15 additions, -7 deletions)

View changed files

📝 lib/module.php (+14 -6)
📝 lib/request.php (+1 -1)

📄 Description

While running: php console.php sieve:filters in Tiki see handle the filtering in Tiki , we are getting:

$ php console.php sieve:filters

Undefined variable $tikiroot on line 16 of C:\Apache24\htdocs\tiki1\tiki\lib\cypht\integration\classes.php preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated on line 179 of C:\Apache24\ht docs\tiki1\tiki\vendor_bundled\vendor\jason-munro\cypht\lib\request.php mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated on line 194 of C:\Apache24\ htdocs\tiki1\tiki\vendor_bundled\vendor\jason-munro\cypht\lib\module.php


🔄 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/1281 **Author:** [@Baraka24](https://github.com/Baraka24) **Created:** 10/14/2024 **Status:** ✅ Merged **Merged:** 10/27/2024 **Merged by:** [@kambereBr](https://github.com/kambereBr) **Base:** `master` ← **Head:** `fix-deprecated-warnings` --- ### 📝 Commits (1) - [`0fc8416`](https://github.com/cypht-org/cypht/commit/0fc8416d0fad52a8052ac4021f80c1d636863801) [FIX]Fix deprecated warnings for preg_match() and mb_strtolower() in Webmail sieve filters ### 📊 Changes **2 files changed** (+15 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `lib/module.php` (+14 -6) 📝 `lib/request.php` (+1 -1) </details> ### 📄 Description While running: `php console.php sieve:filters` in Tiki [see handle the filtering in Tiki](https://doc.tiki.org/Email-filters) , we are getting: `$ php console.php sieve:filters` `Undefined variable $tikiroot on line 16 of C:\Apache24\htdocs\tiki1\tiki\lib\cypht\integration\classes.php preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated on line 179 of C:\Apache24\ht docs\tiki1\tiki\vendor_bundled\vendor\jason-munro\cypht\lib\request.php mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated on line 194 of C:\Apache24\ htdocs\tiki1\tiki\vendor_bundled\vendor\jason-munro\cypht\lib\module.php ` - The first issue has been resolved in [Merge request](https://gitlab.com/tikiwiki/tiki/-/merge_requests/6045) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:38:10 +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#1403
No description provided.