Load native PHP extensions properly on Windows#3471
Merged
Conversation
bcotrim
reviewed
May 13, 2026
Contributor
There was a problem hiding this comment.
I tested this and couldn't get the site to run in Windows using Studio app.
The failure I’m seeing appears to be unrelated to the extension-loading changes in this PR. It only happens when creating a site through Studio’s “Empty site” flow, using studio CLI directly works.
It appears to be related to running blueprints, are you able to replicate this issue?
Contributor
Author
Collaborator
📊 Performance Test ResultsComparing 2cd6ea0 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
Claude drove the entire implementation based on a detailed spec from me.
Proposed Changes
#3439 changes the structure of the PHP package for Windows so that the extensions are no longer static but are distributed as separate DLL files. To account for this, we need to tell PHP where to find the extension files and to activate them. This PR does that.
This PR also activates Xdebug when the
enableXdebugconfig is true.Testing Instructions
C:\Users\USERNAME\.studio\php-bin\8.4(replace the existing content)npx cross-env STUDIO_RUNTIME=native-php npm startphpinfo.phpfile in the site root and put aphpinfo()call in there for verification)Pre-merge Checklist