Skip to content

ext/spl: fix class_parents for classes with leading slash in non-autoload mode#22283

Open
jorgsowa wants to merge 1 commit into
php:PHP-8.4from
jorgsowa:fix/spl-class-parents-leading-backslash-8.4
Open

ext/spl: fix class_parents for classes with leading slash in non-autoload mode#22283
jorgsowa wants to merge 1 commit into
php:PHP-8.4from
jorgsowa:fix/spl-class-parents-leading-backslash-8.4

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

Extracted from #22260

Instead of custom logic, we can reuse zend_lookup_class_ex in spl_find_ce_by_name

FIxes #22282

@jorgsowa jorgsowa requested a review from Girgias as a code owner June 11, 2026 23:24
@jorgsowa jorgsowa changed the base branch from master to PHP-8.4 June 11, 2026 23:27
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.

spl: class_* functions should ignore leading slash in class name in non-autoload mode

1 participant