[GIT-PULLS] [php-src] PR #23084: Make strtolower()/strtoupper() frameless

[email protected] (staabm)
Newsgroups php.git-pulls
Message-ID <XMlD13qQShqkZzrSiW5rsw83VvsEdSTIKvxpGtI95KI@main.internal.php.net>
Pull Request: https://github.com/php/php-src/pull/23084
Author: staabm

disclaimer: this change was generated by claude opus. I have little experience with php-src development

----

Both are single-argument wrappers around zend_string_tolower/upper; static analyzers and general string handling call them at very high frequency. The frameless call convention removes the call frame setup and argument copying.

----

benchmark (3 runs after 2 warmup runs):

run `/Users/staabm/workspace/php-src/sapi/cli/php bin/phpstan clear-result-cache -q &&  /Users/staabm/workspace/php-src/sapi/cli/php -d memory_limit=450M bin/phpstan -v` after checking out https://github.com/phpstan/phpstan-src/pull/5942 from the git root folder.
(on first time phpstan-src checkout you need `composer install` and `make` to prepare the codebase)

before this PR:
14.39s
14.44s
14.36s

after this PR:
14.18s
14.14s
14.12s


on M4-Pro with macOS 26.6 (25G72)
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.