Skip to content

Conversation

adamziel
Copy link
Collaborator

Removes the special MODE_EVAL_CODE in which the PHP code to evaluate
is fed to the interpreter as a string. Inline code snippets are now
written to a special file called /internal/eval.php and executed
as regular PHP files.

Rationale

PHP does not correctly load the php.ini file when the code is passed as
a string.

This change also reduces the number of forks in the most cricitcal code
path in the project – PHP execution.

Remaining work

  • Rebuild all the PHP bundles, not just 8.0

Testing instructions

Confirm the CI checks pass

adamziel added 2 commits May 20, 2024 11:45
Removes the special MODE_EVAL_CODE in which the PHP code to evaluate is fed to the interpreter as a string. Inline code snippets are now written to a special file called `/internal/eval.php` and executed as regular PHP files. ## Rationale PHP does not correctly load the php.ini file when the code is passed as a string. This change also reduces the number of forks in the most cricitcal code path in the project – PHP execution. ## Remaining work * Rebuild all the PHP bundles, not just 8.0 ## Testing instructions Confirm the CI checks pass
@adamziel adamziel merged commit 01abfbf into trunk May 21, 2024
@adamziel adamziel deleted the wasm_remove_run_php_function branch May 21, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment