Skip to content

AOT: Per-request superglobal refresh in native binary (not compile-time bake) #201

@PurHur

Description

@PurHur

Problem

lib/JIT/SuperglobalInit.php bakes $_GET/$_POST at compile time from -q / QUERY_STRING. A deployed AOT binary cannot serve multiple users without recompiling.

This is the AOT-specific slice of #49.

Goal

Native binary reads CGI env or FastCGI params each request and rebuilds superglobal hashtables before user code runs.

Tasks

Acceptance criteria

php bin/compile.php -o app examples/001-SimpleWeb/example.php
QUERY_STRING='name=A' ./app
QUERY_STRING='name=B' ./app
# prints different names

Dependencies

Files

  • lib/JIT/SuperglobalInit.php, lib/AOT/, bin/compile.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:compilerCompiler / CFG / JITarea:webWeb / CGI / superglobalsenhancementNew feature or requestphase-3:aotPhase 3 – AOT deployment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions