Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP: Always set the auto_prepend_file php.ini entry, even when the auto_prepend_file.php file exists #1388

Merged
merged 1 commit into from
May 14, 2024

Conversation

adamziel
Copy link
Collaborator

Filesystem files are shared between PHP instances within the same PHPProcessManager, but php.ini entry are kept in WASM memory and must be set on every PHP instance separately. Therefore, the auto_prepend_file must always be set in #initWebRuntime

Fixes a regression introduced in #1386

To test, run bun packages/playground/cli/src/cli.ts server --login and confirm it finishes without any errors.

…to_prepend_file.php file exists

Filesystem files are shared between PHP instances within the same
PHPProcessManager, but php.ini entry are kept in WASM memory and must
be set on every PHP instance separately. Therefore, the
`auto_prepend_file` must always be set in `#initWebRuntime`

Fixes a regression introduced in #1386

To test, run `bun packages/playground/cli/src/cli.ts server --login` and
confirm it finishes without any errors.
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Package][@php-wasm] Universal labels May 14, 2024
@adamziel adamziel merged commit 7531696 into trunk May 14, 2024
1 check passed
@adamziel adamziel deleted the unconditional-auto-prepend-file branch May 14, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@php-wasm] Universal [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant