Skip to content

Fix shutdown errors - #1104

Merged
adamziel merged 9 commits into
trunkfrom
fix/1078-woo-asyncify-crash
Mar 13, 2024
Merged

Fix shutdown errors#1104
adamziel merged 9 commits into
trunkfrom
fix/1078-woo-asyncify-crash

Conversation

@bgrgicak

Copy link
Copy Markdown
Collaborator

Fixes #1078

What is this PR doing?

If fixes an Asyncify error and memory leak when running PHP shutdown functions.

What problem is it solving?

It adds full support for PHP shutdown functions and prevents crashes.

How is the problem addressed?

By adding Asyncify support for wasm_sapi_request_shutdown and preventing free from running if memory wasn't allocated.

Testing Instructions

  • Checkout this branch
  • Run dev env npm run dev
  • Open this URL and confirm that WP loads without Asyncify errors and and memory leaks (check the browser console)
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Aspect] Asyncify [Feature] PHP.wasm [Type] Bug An existing feature does not function as intended

2 participants