-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Breaking] Refactor PHP.ini management, remove php.setPhpIniPath() an…
…d php.setPhpIniEntry() (#1423) Refactors PHP.ini management: * Removes the `php.setPhpIniEntry()` methods that only worked correctly when called before initializing the PHP runtime. * Hardcodes the php.ini path to `/internal/shared/php.ini`. The developer is welcome to override that file as needed, but they can't customize the path. Once changing the path becomes important, let's add that feature at the [Boot Protocol](#1398) level. * Provides `getPhpIniEntries()`, `setPhpIniEntries()`, and `withPHPIniValues()` helpers that work at any point of the PHP runtime lifecycle. * Moves a list of the default php.ini values from `php_wasm.c` to `base-php.ts` where it can be customized without rebuilding the wasm module. ## What problem is it solving? Working with php.ini is highly problematic as you could never be sure whether your `setPhpIni*` call would be effective. Then, at the API level, the `setPhpIni*` methods were also excluded from some TypeScript types but not from the others. ## Remaining work * Rebuild all the PHP modules ## Testing Instructions Confirm the CI tests pass.
- Loading branch information
Showing
76 changed files
with
786 additions
and
8,042 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.