Skip to content

Zend: refactor class lookup logic - #24277

Closed
Girgias wants to merge 5 commits into
php:masterfrom
Girgias:2026-10-zend_lookup_class_flags
Closed

Girgias wants to merge 5 commits into
php:masterfrom
Girgias:2026-10-zend_lookup_class_flags

Conversation

@Girgias

@Girgias Girgias commented Oct 12, 2026

Copy link
Copy Markdown
Member

Add a new zend_lookup_class_with_flags() API so that we can refactor zend_lookup_class_ex() to always require a lowercase class name, moving the class name lowercaseing code to an outer call.

This also adds assertions that the lowercase class name is usable as such, which would simplify the logic that I attempted in #24271

@Girgias
Girgias force-pushed the 2026-10-zend_lookup_class_flags branch from 6798e05 to 177286c Compare October 12, 2026 22:46
@Girgias
Girgias marked this pull request as ready for review October 13, 2026 00:00
@Girgias
Girgias requested review from bukka and dstogov as code owners October 13, 2026 00:00
@Girgias

Girgias commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

After discussion with Nora it is probably not worth trying to pass the lowercase string from zend_is_callable_check_class(), especially as it won't even be necessary anymore when we finally remove support for partially deprecated callables.

See #24326 as the follow-up extracting the useful things out.

@Girgias Girgias closed this Oct 14, 2026
@Girgias
Girgias deleted the 2026-10-zend_lookup_class_flags branch October 14, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant