points by anthk 3 days ago | 0 comments
There's a PHP implementation written in Rust.
[–] TedDoesntTalk 3 days ago
[–] dotancohen 3 days ago
It runs everything that any software I've ever written needs - and I've been doing PHP since dates began with `19`.
[–] TedDoesntTalk 3 days ago
But since php isn’t complied, how would I know if something is broken until every code path is exercised? Genuine question
[–] dotancohen 3 days ago
You exercise every code path with a unit or integration test.
I tend to write integration tests for the paths users take through the application (website), and fill in the holes with unit tests. I'll also write unit tests for methods that change often or are critical, such as business logic.
[–] actionfromafar 3 days ago
I wonder if PHP compiled with Fil-C would have stopped that bug. My guess is it would have.
[–] mbrock 3 days ago
My tests show that it would. The post-patch integration tests trap under Fil-C, and the StealMyBitcoin exploit chain traps too.
https://mbrock.github.io/filnix/docs/php.html
It’s also compatible with most PHP native extensions.
https://phprust.com/status/
I’ll keep checking