Skip to content

M3 parser unit probe: CFG parse front-end native link (#2409) - #2425

Merged
PurHur merged 1 commit into
masterfrom
issue-2409-parser-unit-probe
May 26, 2026
Merged

PurHur merged 1 commit into
masterfrom
issue-2409-parser-unit-probe

Conversation

@PurHur

@PurHur PurHur commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds test/selfhost/parser_unit_probe/ with compiler_minimal-scale bundle (lib/Runtime.php, lib/Compiler.php, Lint stack), a class/method/if fixture.php, and parser_unit_probe_parse_smoke() for Zend PHPCfg parse coverage.
  • Adds script/bootstrap-selfhost-parser-unit-probe.sh and make bootstrap-selfhost-parser-unit-probe (prints parser_unit_probe bundle OK at build/selfhost-parser-unit-probe).
  • Documents probe in docs/bootstrap-selfhost.md / docs/self-host-target.md; BootstrapParserUnitProbeTest covers lint, native link, and parse smoke.

Follow-ups (separate issues): BOOTSTRAP_PARSER_UNIT_PROBE_GATE in ci-local (#2417), north-star3-verify step 5 (#2418), default-on flip (#2419).

Closes #2409

Test plan

  • ./script/docker-exec.sh -- bash -lc 'composer install --ignore-platform-reqs && ./script/apply-patches.sh && source script/php-env.sh && php bin/compile.php -l test/selfhost/parser_unit_probe/main.php'
  • ./script/docker-exec.sh -- bash -lc '… && ./script/bootstrap-selfhost-parser-unit-probe.sh'
  • vendor/bin/phpunit test/unit/BootstrapParserUnitProbeTest.php

Made with Cursor

Introduce test/selfhost/parser_unit_probe with native AOT link script,
Zend parse smoke on a class/method/if fixture, Makefile target, and docs.
CI gate and north-star3 step remain follow-ups (#2417, #2418).

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 056cb9f into master May 26, 2026
@PurHur
PurHur deleted the issue-2409-parser-unit-probe branch May 26, 2026 11:45
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.

Self-host M3: native compile unit probe on lib/Parser.php slice

1 participant