Windows PHP startup-source provenance for plugin development

Understanding PHP startup-source provenance


Not a bug


System Details

  • Local Version: 10.1.2+7004

  • Operating System (OS) and OS version: Windows 11


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


I’m developing a read-only WordPress inspection plugin on a disposable Windows Local site. I need to understand PHP startup-source provenance before adding my own authenticated report checks. I’m not reporting a broken site or a bug at this stage.

PHP 8.2.29 was confirmed in bounded bare-CLI checks. This doesn’t establish the effective web-worker configuration or current package provenance.

The conservative read-as-data parser observed a nonempty auto_prepend_file setting but did not release a reference under its fixed disclosure grammar. I haven’t loaded that inspected configuration or read/run a referenced file. This refusal is the tool’s policy, not evidence of invalid PHP or a Local bug.

For the app version above and the Windows PHP service package, could someone point
me to version-specific documentation or vendor source/package references for:

  1. How Local generates auto_prepend_file, including any template bindings, quoting/escaping and differences between Site Shell/CLI and web workers?
  2. Which startup sources Local supplies, and how an installation can be checked against an authoritative package/source version without posting private configuration, paths, credentials or logs?
  3. What those sources may include, execute, read, write, log or connect to, including conditional behavior and transitive dependencies?
  4. Whether Local provides a documented developer verification workflow with explicit startup/environment and side-effect boundaries?

I’m looking for provenance and documented behavior, not instructions to disable or replace settings, bypass startup files, restart/repair the site or upload full configuration/logs. I need public references first. Any private diagnostic request needs a separate privacy/access review on my side.

I know it’s asking a lot, but I’ve hit a wall for now until I can get past this, so I’m hoping someone has at least some of the answers.

Cheers

Paul

Hi, @Wiredcoyote.

  1. Local intentionally configures PHP’s auto_prepend_file to load a static local-bootstrap.php shipped with the application. The file is not generated at runtime; Local inserts its path into the site’s compiled php.ini. It supports one-click admin and local mail handling. (It adds it here so that it is not accidentally uploaded as a must-use plugin on real non-local sites.)

  2. On Windows, site requests are handled by PHP CGI processes explicitly given the site’s PHP configuration directory. Site Shell points PHP to the same directory using PHPRC, so both normally load the same php.ini, although their PHP interfaces and environments differ.

  3. The bootstrap does not directly upload configuration, paths, credentials, or logs. Its one-click-login path calls WordPress APIs and hooks, so an exhaustive list of transitive effects would depend on WordPress, plugins, and site code.

  4. Local does not currently publish checksums or a documented verification workflow covering the provenance and side-effect boundaries you describe.