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: Remove setSapiName, setPhpIniEntry, setPhpIniPath methods from the remote PHP API client #1321

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

adamziel
Copy link
Collaborator

setSapiName, setPhpIniEntry, and setPhpIniPath are methods that must either be called synchronously before the PHP internal state is initialized, or with a complex argument that can't be serialized over a remote connection.

They can only be used in the same process before PHP is fully initialized and have never worked correctly when connecting a Playground API client to remote.html.

Removing them makes that apparent, prevents confusing API interactions.

In addition, it sets the stage for supporting
a Loopback
Request
as the backend for the API endpoint switches from a single PHP instance to a PHPRequestHandler, and here we're removing an API surface that needs to impact all existing and future PHP instances.

Testing instructions

Confirm the CI checks pass.

…he remote PHP API client

setSapiName, setPhpIniEntry, setPhpIniPath are methods that
must either be called synchronously before the PHP internal
state is initialized, or with a complex argument that can't
be serialized over a remote connection.

They can only be used in the same process before PHP is
fully initialized and have never worked correctly when
connecting a Playground API client to `remote.html`.

Removing them makes that apparent, prevents confusing
API interactions.

In addition, it sets the stage for supporting
a [Loopback
Request](#1287)
as the backend for the API endpoint switches from a single PHP instance
to a PHPRequestHandler, and here we're removing an API surface that
needs to impact all existing and future PHP instances.

 ## Testing instructions

Confirm the CI checks pass.
@adamziel adamziel merged commit 349e0e6 into trunk Apr 25, 2024
5 checks passed
@adamziel adamziel deleted the omit-methods-in-IsomorphicRemotePHP branch April 25, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant