Skip to content

Bootstrap AOT lint: require_once chain (fixes #120)#535

Merged
PurHur merged 1 commit into
masterfrom
issue-120-require-chain-lint
May 22, 2026
Merged

Bootstrap AOT lint: require_once chain (fixes #120)#535
PurHur merged 1 commit into
masterfrom
issue-120-require-chain-lint

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 22, 2026

Summary

  • Add test/bootstrap-aot/require_chain/ (main.php + helper.php) as a minimal multi-file require_once AOT lint gate.
  • Auto-discover test/bootstrap-aot/*/main.php in bootstrapDefaultAotLintTargets() and regenerate docs/bootstrap-profile.json.

Notes

No Compiler include lowering change required: bin/compile.php already bundles literal includes via LiteralIncludeDiscovery + SourceBundler before JIT.

Test plan

  • php script/bootstrap-aot-lint.php (11 targets)
  • vendor/bin/phpunit test/unit/BootstrapProfileTest.php test/aot/BootstrapAotLintTest.php

Closes #120

Made with Cursor

Introduce test/bootstrap-aot/require_chain/ and auto-discover
test/bootstrap-aot/*/main.php in bootstrap-profile for multi-file chains.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 0f9544d into master May 22, 2026
@PurHur PurHur deleted the issue-120-require-chain-lint branch May 22, 2026 14:38
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.

Language: require_once and include_once deduplication

1 participant