[php-src] Issue #23476: Optimization idea: optimize str_{starts|ends}_wtih() with a 1 byte needle string to $haystack[{0|-1}] === $needle
| From: | Girgias | Date: | Wed, 26 Aug 2026 21:18:52 +0000 |
| Subject: | [php-src] Issue #23476: Optimization idea: optimize str_{starts|ends}_wtih() with a 1 byte needle string to $haystack[{0|-1}] === $needle | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252674@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/23476
Author: Girgias
### Description
Thought about when seeing the following post: https://phpc.social/@linc/117163847782802693