Skip to content

Stdlib: ReflectionClass::getInterfaces() name=>ReflectionClass map (#22170) - #22189

Merged
PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-22170-reflection-getinterfaces
Jul 22, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-22170-reflection-getinterfaces

Conversation

@PurHur

@PurHur PurHur commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #22170

php-src reference

  • ext/reflection/php_reflection.c — zim_ReflectionClass_getInterfaces

PHP implementation

  • ext/standard/VmReflection::reflectionClassInterfacesMap()
  • lib/VM/Builtin/ReflectionClassGetInterfaces.php + BuiltinClasses registration

Test plan

  • Issue repro (Zend == VM)
  • vendor/bin/phpunit --filter reflection_class_get_interfaces (OK 2 tests)
  • spine/inventory 6375 + check-generated-docs
  • make north-star5-verify-fast

Verification

php bin/vm.php test/repro/maintainer_reflection_class_get_interfaces.php  # matches Zend
vendor/bin/phpunit --filter reflection_class_get_interfaces               # OK (2 tests)
make north-star5-verify-fast                                              # OK (fast)

Made with Cursor

…22170)

Mirror getInterfaceNames() order into a ReflectionClass map like php-src
zim_ReflectionClass_getInterfaces (and the getTraits pattern from #22108).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: ReflectionClass::getInterfaces() missing — getInterfaceNames OK (ext/reflection/php_reflection.c)

1 participant