Skip to content

Testing: nested_include_two_tier.phpt AOT execute (layout scope, #764) #878

Description

@PurHur

Problem

test/fixtures/aot/cases/nested_include_two_tier.phpt exists and models a two-hop literal include where the inner template inherits outer locals (ok + done → okdone). It sits between the closed #848 isset fixture and layout-tier work (#784, #807, #832).

There is no tracker issue tying this PHPT to the #764 bisect ladder, so regressions in nested-include scope can slip past while smaller fixtures stay green.

Goal

./script/ci-local.sh --filter nested_include_two_tier runs AotTest with:

  • Link + execute exit 0
  • stdout okdone per --EXPECT--

Scope

Implementation hints

Piece Path Notes
PHPT test/fixtures/aot/cases/nested_include_two_tier.phpt Already references #764
VM compare test/unit/IncludeLiteralTest.php Second-tier literal include test
AOT lib/AOT/, lib/Compiler.php Compare VM include stack for inherited locals
Parent #764, #867, #784 Order: #848 ✅ → this → render_home → layout branches

Reproduce

./script/ci-local.sh --filter nested_include_two_tier
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \
  ./script/ci-local.sh --filter nested_include_two_tier

Harness empty bind-mount: ./script/docker-ci-local.sh --filter nested_include_two_tier.

Acceptance criteria

Dependencies

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions