Skip to content

Add PHP iterator and yield support - #1181

Merged
adamziel merged 7 commits into
trunkfrom
fix/1147-asyncify-iterators
Apr 2, 2024
Merged

Add PHP iterator and yield support#1181
adamziel merged 7 commits into
trunkfrom
fix/1147-asyncify-iterators

Conversation

@bgrgicak

@bgrgicak bgrgicak commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

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 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

adamziel commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

Lovely!

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

Copy link
Copy Markdown
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

adamziel commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

@brandonpayton additional context: #273

@brandonpayton

Copy link
Copy Markdown
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

3 participants