[php-src] PR #22565: Use zend_hash_find_ptr_lc() for case-insensitive name lookups

From: Date: Thu, 02 Jul 2026 22:58:03 +0000
Subject: [php-src] PR #22565: Use zend_hash_find_ptr_lc() for case-insensitive name lookups
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36790@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22565 Author: jorgsowa A number of call sites lowercased a class/function/method name into a temporary string solely to use it as a lookup key in the class table, function table, module registry, etc., then released it. Replace those with zend_hash_find_ptr_lc() / zend_hash_str_find_ptr_lc(), which lowercase into a stack buffer (for short names), perform the lookup, and free the temporary internally. This removes the manual tolower + release boilerplate at 17 sites. No behavior change. Extracted from https://github.com/php/php-src/pull/22260

« previous php.git-pulls (#36790) next »