Actions
Task #77752
closedUse strpos instead of substr to check the start of a string
Start date:
2016-09-01
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Use strpos instead of substr to check the start of a string.
Substr invokes additional memory allocation, which is not needed in the context. Strpos will do the same job, but without any overhead (it's just searching a string).
Updated by Gerrit Code Review about 8 years ago
- Status changed from Accepted to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49677
Updated by Wouter Wolters about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ad81643887030e0945127f69b6f285c30415d39d.
Actions