Skip to content

ServeAotTest: PATH_INFO front-controller (closes #453)#456

Merged
PurHur merged 1 commit into
masterfrom
issue-453-serve-aot-path-info
May 21, 2026
Merged

ServeAotTest: PATH_INFO front-controller (closes #453)#456
PurHur merged 1 commit into
masterfrom
issue-453-serve-aot-path-info

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 21, 2026

Summary

  • Add testServeAotPathInfoFrontControllerDispatch to ServeAotTest, mirroring VM ServeTest coverage from Testing: ServeTest PATH_INFO front-controller dispatch #276 for GET /index.php/hello under phpc serve --aot.
  • Extend SuperglobalInit::RUNTIME_SERVER_KEYS with SCRIPT_NAME, PATH_INFO, PHP_SELF, and REQUEST_URI so AOT no longer bakes compile-host CGI values into $_SERVER reads (fixes wrong SCRIPT_NAME when compiling under PHPUnit).

Test plan

  • vendor/bin/phpunit --filter testServeAotPathInfoFrontControllerDispatch test/real/ServeAotTest.php (Docker php-compiler:22.04-dev, tar copy)
  • Full ServeAotTest (13 tests) green in Docker

Closes #453

Made with Cursor

…e time

Issue #453: mirror VM front-controller coverage under phpc serve --aot.
Treat SCRIPT_NAME, PATH_INFO, PHP_SELF, and REQUEST_URI as runtime $_SERVER
keys so AOT binaries reflect per-request CGI env instead of the compile host.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Testing: ServeAotTest PATH_INFO front-controller with phpc serve --aot

1 participant