Memory unfriendly functions used for simple checks
The TYPO3 core uses
strstr() and friends quite often to check the occurrence of a certain substring. This is not optimal, as the computed result is stored into RAM, but is not used at all.
Those occurrences may be replaced with
[BUGFIX] Use `strpos()` over `strstr()`
This patch replaces all usages of `strstr()` and its friends where the
existence of a certain substring is checked, but the result isn't used at
all with `strpos()`, which uses less memory.
Tested-by: TYPO3com <email@example.com>
Tested-by: Anja Leichsenring <firstname.lastname@example.org>
Tested-by: Frank Naegler <email@example.com>
Reviewed-by: Oliver Klee <firstname.lastname@example.org>
Reviewed-by: Anja Leichsenring <email@example.com>
Reviewed-by: Frank Naegler <firstname.lastname@example.org>
#1 Updated by Gerrit Code Review 4 months ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61445