[php-src] PR #17791: Fix: Remove unused code and improve regex patterns in mail_util.inc
| From: | nzsys | Date: | Fri, 14 Feb 2025 00:38:08 +0000 |
| Subject: | [php-src] PR #17791: Fix: Remove unused code and improve regex patterns in mail_util.inc | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30757@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17791
Author: nzsys
### What this PR does
This PR removes unused code and simplifies regex patterns in
mail_util.inc, which is
part of the standard tests for the ext/standard extension. These changes enhance code
readability, maintainability, and remove redundant operations without affecting functionality.
### Details of the changes
1. Removed the unused $items variable from the getHeaders function.
2. Removed unnecessary lazy quantifiers (?) in regex patterns.
3. Removed the unused s flag in regex patterns, as it serves no purpose here.