wordpress-playground
wordpress-playground copied to clipboard
[ php-wasm ] Identify `function signature mismatch` in C files
Based on the following review
We should focus on a way to list possible function signature mismatches in each PHP version that could lead to crashes in their wasm form. reference
Suggestions
- Building native php with the regular toolchain and some more verbose warnings logging [
-Wreturn-mismatch,-Wcast-function-type] - Running a static analyzer
- We should not scan only php, but also static and shared extensions
References
- https://github.com/WordPress/wordpress-playground/pull/2248
- https://github.com/WordPress/wordpress-playground/issues/2324