[php-src] Issue #23476: Optimization idea: optimize str_{starts|ends}_wtih() with a 1 byte needle string to $haystack[{0|-1}] === $needle

[email protected] (Girgias)
Newsgroups php.bugs
Message-ID <deGtC5jq65Gper1g6DTA9oYDrfQrxS19sYdwIzYN4ok@main.internal.php.net>
Issue: https://github.com/php/php-src/issues/23476
Author: Girgias

### Description

Thought about when seeing the following post: https://phpc.social/@linc/117163847782802693
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.