You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP: instance ($g->m()) member calls produce no edge across files, and nothing across repos #3390
$this->greeter->greet() / $g->greet() resolve to nothing — v8 routes a $var receiver to its "dynamic scope" branch and gives up. The receiver's class
is written down (property, promoted ctor param, typed param, or new), so the
edge is recoverable. This is the PHP twin of the Swift gap in #1356.
2. Nothing crosses a repo boundary
Even once the receiver is typed, a class this build does not contain cannot be
resolved, and php is absent from cross_repo_calls._LANG_SUFFIXES, so the
parked entry (#3152) is never language-checked and the merge drops it.
Scope
Resolution is by the receiver's declared type with the single-definition guard,
gated to the PHP interop family. An untyped, union, longer-chain or ambiguous
receiver produces no edge. The scoped :: path from #3872 is unchanged.
Self-contained, runnable reproduction (driven only by graphify on PYTHONPATH, so the same script runs against pristine v8 and against the PR branch). Two single-file repos are built — app calls a method on a type declared only in lib — then merge-graphs is run; the parked entry and the cross-repo calls edge are printed.
The receiver's type is declared only in the other repo, so nothing is parked and merge-graphs has nothing to finish — the call edge is lost across the boundary, exactly as described.
The call is parked by name (no node ids, per the #3152 contract) and finished by link_cross_repo_member_calls as an INFERRED / context=cross_repo edge when the type resolves to exactly one declaration in another repo.
PR #3391 cherry-picks clean onto the current v8 tip 20a20d3 (git merge-tree reports no conflicts; PR is MERGEABLE / CLEAN).
changed the title [-]PHP: member calls on a typed receiver produce no edge across files, and nothing across repos[/-][+]PHP: instance (`$g->m()`) member calls produce no edge across files, and nothing across repos[/+]on Oct 13, 2026
Resolved in 0.9.89. Both halves landed on v8: single-build instance resolution ($g->m() through the receiver's declared type, INFERRED) in commit 0d635ff, and cross-repo linking of the parked call in commit d045891 — credited in the 0.9.89 release notes. Closing.
Activity
xiongjianxu commentedon Sep 22, 2026
Self-contained, runnable reproduction (driven only by
graphifyonPYTHONPATH, so the same script runs against pristine v8 and against the PR branch). Two single-file repos are built —appcalls a method on a type declared only inlib— thenmerge-graphsis run; the parked entry and the cross-repocallsedge are printed.On pristine v8 (
20a20d3):The receiver's type is declared only in the other repo, so nothing is parked and
merge-graphshas nothing to finish — the call edge is lost across the boundary, exactly as described.With PR #3391:
The call is parked by name (no node ids, per the #3152 contract) and finished by
link_cross_repo_member_callsas anINFERRED/context=cross_repoedge when the type resolves to exactly one declaration in another repo.PR #3391 cherry-picks clean onto the current v8 tip
20a20d3(git merge-treereports no conflicts; PR isMERGEABLE/CLEAN).[-]PHP: member calls on a typed receiver produce no edge across files, and nothing across repos[/-][+]PHP: instance (`$g->m()`) member calls produce no edge across files, and nothing across repos[/+]xiongjianxu commentedon Oct 13, 2026
Resolved in 0.9.89. Both halves landed on
v8: single-build instance resolution ($g->m()through the receiver's declared type, INFERRED) in commit 0d635ff, and cross-repo linking of the parked call in commit d045891 — credited in the 0.9.89 release notes. Closing.