I'm starting to think that rust rewrite of PHP is what php needs. Not the whole thing at once. Maybe parser by parser. Eliminating use-after-free as a first thing?
https://cynarski.me/posts/php-8-5-13-security-release#most-of-this-list-is-the-same-kind-of-bug
Commit
f449b22
On paper, rewriting PHP from C to Rust sounds great (some small steps can be made)
- but in reality, the engineering effort and edge cases make it brutal... :/
commit f449b22