wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

[ php-wasm ] Identify `function signature mismatch` in C files

Open mho22 opened this issue 6 months ago • 1 comments

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

mho22 avatar Jul 01 '25 11:07 mho22