🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #86

Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire

#86
From: Dan Cross
Date: Sun, 25 Oct 2026 01:04
71 lines
3777 bytes
In article <11bjj1q$36q4q$1@dont-email.me>,
Arne Vajhøj <arne@vajhoej.dk> wrote:
>On 10/24/2026 3:42 PM, Dan Cross wrote:
>> In article <11bivpt$305om$1@dont-email.me>,
>> Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> The interesting part is what happens under the hood. JSP
>>> pages are not interpreted - they are compiled. Or more
>>> precisely: they are triple compiled. The JSP compiler
>>> compiles from JSP to Java source, the Java compiler
>>> compiles from Java source to Java byte code and the
>>> JVM JIT compiles from Java byte code to native code.
>> 
>> It may be relevant to point out that PHP is basically a compiled
>> to a bespoke virtual machine (Zend) at this point; the old days
>> of a slow, simple interpreter are long gone.
>
>The traditional Zend engine is like traditional CPython:
>convert the source to an intermediate byte code and
>interpret that.

Yes.  Zend is a virtual machine that executes a bytecode,
similar to the JVM, BEAM, etc.

Zend arrived with PHP4.  Prior to that, PHP just used a simple
interpreter that walked a parse tree and executed the program as
directly.

>Performance is interpreter like not JIT compiler like.
>
>Zend added some JIT in 8.0 and CPython in 3.13.
>
>CPython JIT is a joke performance wise.
>
>Zend JIT may be a little better.

The HHVM paper was presented at OOPSLA '14, citing PHP5 as
current; that was the Zend 2 era.  They don't actually mention
Zend by name, but say, "The most popular PHP implementation is a
straightforward interpreter [25]."  (Reference 25 is just,
"PHP5. Web site: http://php.net.")

The conclusion is that, while Zend was _likely_ an improvement
over the previous interpreter that executed directly from the
parse tree, it wasn't very good otherwise; probably only a
little more sophisticated than the one from TPOP.

>> Facebook came up; it was (in)?famously written in PHP
>> originally, but some may be familiar with the "Hack" language
>> they developed that introdcued gradual typing for it; they also
>> have a bespoke VM ("Hip Hop") that runs it.  I doubt they care
>> *too* much about what happens in the mainstream PHP world.
>Hack is how Facebook think PHP 7.x & 8.x should have been.
>
>Funny enough given where this discussion started, then it
>does not support mixing of code and HTML - it is all code.

Huh.  Weird.

>HHVM JIT compiles. And is pretty good at it.

One should hope so.  They dove into a fair bit of prior art,
including LuaJIT, which is often given as an example of a
best-in-class JIT.

>And just to complete: PeachPie on CLR and Quercus on JVM obviously
>also JIT compile, but are not as good as HHVM.

Yup.  It's a common technique.

	- Dan C.
Technical Details
Message-ID: <11bjkj6$r6$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <11bcbi1$k068$1@dont-email.me> <11bivpt$305om$1@dont-email.me> <11bj1n9$kbg$1@reader2.panix.com> <11bjj1q$36q4q$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.os.vms
Subject: Re: Re: ‘This Is Not a Drill’: Critical PHP Vulnerabilities Are Setting the Internet on Fire
Date: Sun, 25 Oct 2026 01:04:38 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11bjkj6$r6$1@reader2.panix.com>
References: <11bcbi1$k068$1@dont-email.me> <11bivpt$305om$1@dont-email.me> <11bj1n9$kbg$1@reader2.panix.com> <11bjj1q$36q4q$1@dont-email.me>
Injection-Date: Sun, 25 Oct 2026 01:04:38 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="870"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)