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-WASM Web] add mysqli function and constant polyfills #2123

Closed
wants to merge 3 commits into from

Conversation

bgrgicak
Copy link
Collaborator

⚠️ **Don't merge this PR, it's a failed exploration. **

Motivation for the change, related issues

In this PR I experimented with writing a PHP extension that mocks the missing mysqli functions, classes, and constants.

Some plugins like Query Monitor directly call mysqli functions (#1990) unavailable on the web version of PHP-WASM.

To make this approach work we would need to rewrite all mysqli features and I think that what @adamziel proposed in Support SQLite at the network connection level is a much better solution that will also enable other plugins to work.

Implementation details

This PR adds a mysqli_polyfill PHP extension and creates all the necessary mysqli features for Query Monitor to activate.

Testing Instructions (or ideally a Blueprint)

@bgrgicak
Copy link
Collaborator Author

I'm closing this PR because I don't think that it's a good direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant