I run PHP inside of my Rust web server, should I worry about the recent problem discovered?

I'm under impression that the problem appears if your PHP inside Apache web server and safe otherwise, especially if you use Rust server. Is it correct?

The bug is in the PHP implementation, you must upgrade if you don't want to be affected.

Slightly off-topic, but why/how does PHP account for ~70% of websites whose server-side language is known?

WordPress probably.

thanks.

WordPress + long legacy of extremely low cost shared hosting providers + easier to identify and count PHP.

If your program uses the PHP runtime stuff to handle HTTP requests, you must upgrade.

If not, I think it really depends on your setup.

The combination of PHP with Rust boggles my mind.

I do not have the common fever to rewrite anything in Rust. I almost never rewrite any code. From other side, I have the Apple disease - think different, so do not use Cargo.

I was listening to @alice on a Corrode podcast a little while ago. Great quote:

Interop is the new rewrite.

It's a strange phenomena. Since I started using Rust and following Rust discussions 7 years ago the talk among Rust devs and users was always about interoperability, never campaigning that everything be rewritten in Rust and Rust that should take over everything. Words like symbiosis were used. That all sounded very sensible to me, rewriting huge old code bases is generally a bad idea or at least very time consuming and expensive. Campaigning for rewrites would only make Rust folks look silly and alienate users of other languages.

Then in recent times we suddenly hears lots of stories of huge projects being rewritten in Rust. Mostly done by LLM. And of course now Rust folks are branded as crazy fanatics, members of a cult, who want to rewrite the world in Rust. Quite the opposite of original intentions.

Strange times we live in.

I was combining Rust with PHP back in 2019 at my previous job.

I don't think so. Rust developers never said that they don't plan to conquer the world and ensure that everything was rewritten in Rust an often corrected people who proclamed that as goal — but that's because they knew that attempt to do that would 100% guaranteed fail.

Remember The Rust I Wanted Had No Future ? Rust developers had to cut out a lot of important (some even say vital) features in order to ship anything at all… something that many other, better funded teams couldn't do (think iAPX432 and Itanic). Obviously that wasn't suitable for the task of conquering the world… but as these features are gradually added back… Rust becomes more and more suitable for a rewrites.

I certainly recall "senior" Rust devs denouncing the goal of rewriting everything in Rust when I first started following Rust seven tears ago. Sorry I can't back that up with any links today. Rather the feeling was expressed that the software world will grow and Rust can grow into the new space, without rewriting the old stuff. And that interoperability with existing things was a goal.

But that's precisely the only way rewrite may happen!

Compare to C# or Java: in spite of wonderful qualities of these interoperatbility with “legacy” world is so hard that MS Office is still written in C++ and not C# an LibreOffice dropped Java when it was forked from OpenOffice.org!

It sound incredibly ironic but it's precisely that attention to coexistence and ability to not replace things that enabled Rust to become a foundation for the new rewrites!

Languages that insist on controlling everything and rejecting “legacy” can be succesful, too - but they need a greefield for that: think Android and Java, Web and JavaScript, etc… language with focust on interoperability may replace something else because it doesn't demand “flag day” rewrite.

Flag days may work at surprisingly large scales (modern Internet was famously born on January 1, 1983, when ARPANET switched from NCP to TCP)… but beyond certain size you need interoperability, or things simply wouldn't work.

I should not be so surprised. It's just that Rust and PHP are at opposite ends of the spectrum in so many ways.

You mean all that interoperability talk was a sneaky ploy to actually get everything rewritten in Rust without actually stating that as a goal? Very sneaky.

It's all moot nowadays. As far as I can tell AI is doing all the rewrites into Rust. Nobody is fussing over interoperability.

AI should rewrite everything in Assembly. Programming languages are human's thing. And since it's still human thing, I select a language which fits most to complete my current task successfully. It doesn't matter, it's Rust or PHP.

That idea crossed my mind some months ago. Then it occurred to me that if the AI is as smart as we are it would also want to use a high level language because that makes the work more efficient. Why would an AI want to waste time and energy on assembly level details if it can use a high-level language to get the job done?

I then imagined that if an AI created its own high level language to make its work easier that language could be totally different to anything humans have created.

Have you tried getting AI to do anything non trivial in assembler? It's a while ago since I did and I did not have any success.