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

Add PHP iterator and yield support #1181

Merged
merged 7 commits into from
Apr 2, 2024
Merged

Conversation

bgrgicak
Copy link
Collaborator

@bgrgicak bgrgicak commented Apr 2, 2024

Fixes #1147

What is this PR doing?

It adds support for PHP iterators and yield and tests to ensure support works.

What problem is it solving?

Ensures users can use PHP iterators and yield.

How is the problem addressed?

By adding missing functions to the Asyncify function list.

Testing Instructions

  • ensure tests pass

@bgrgicak bgrgicak self-assigned this Apr 2, 2024
@bgrgicak bgrgicak changed the title Add PHP Iterator support Add PHP iterator and yield support Apr 2, 2024
@bgrgicak bgrgicak requested a review from a team April 2, 2024 10:20
@bgrgicak bgrgicak added [Type] Bug An existing feature does not function as intended [Feature] PHP.wasm labels Apr 2, 2024
@bgrgicak bgrgicak marked this pull request as ready for review April 2, 2024 10:20
@adamziel
Copy link
Collaborator

adamziel commented Apr 2, 2024

Lovely!

@adamziel adamziel merged commit 10196dc into trunk Apr 2, 2024
5 checks passed
@adamziel adamziel deleted the fix/1147-asyncify-iterators branch April 2, 2024 10:55
@brandonpayton
Copy link
Member

Thank you, @bgrgicak, this is helpful for me to see.

Why does exposing PHP iterator and yield support to the JS context solve the problem? Is it related to JS needing to identify where PHP execution should continue?

@adamziel
Copy link
Collaborator

adamziel commented Apr 2, 2024

@brandonpayton additional context: #273

@brandonpayton
Copy link
Member

Thanks, @adamziel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] PHP.wasm [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: "unreachable" WASM instruction executed
3 participants