Skip to content

Fix dynamic static calls on object targets - #87

Merged
matyhtf merged 1 commit into
swoole:masterfrom
yavon007:codex/fix-dynamic-static-object-call
Sep 7, 2026
Merged

Fix dynamic static calls on object targets#87
matyhtf merged 1 commit into
swoole:masterfrom
yavon007:codex/fix-dynamic-static-object-call

Conversation

@yavon007

Copy link
Copy Markdown
Contributor

Summary

  • keep the stable-object fast path only for statically named methods
  • route dynamic method names through the runtime object class and method value
  • add code-generation and PHPT coverage for base/subclass object targets and named arguments

Testing

  • vendor/bin/phpunit phpunit/src/CallCacheCodegenTest.php
  • php run-tests.php -q --compiler ./tpc tests/compiler/static/static-call-dynamic-object-method.phpt tests/compiler/static/static-call-dynamic-method.phpt tests/compiler/dynamic_call/call-cache-dispatch.phpt

@matyhtf
matyhtfforce-pushed the codex/fix-dynamic-static-object-call branch from da5ec15 to 4b22f64CompareSeptember 7, 2026 09:03
@matyhtf
matyhtf merged commit cbd100f into swoole:masterSep 7, 2026
Sign up for freeto 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.

2 participants

@yavon007@matyhtf