Re: about php4 compiler

From: Date: Fri, 18 Aug 2000 13:36:59 +0000
Subject: Re: about php4 compiler
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12473@lists.php.net to get a copy of this message
Jen-Fu Huang wrote: > > In Zend.COM say that > " The PHP 4.0 scripting engine - Zend Engine - uses a much more efficient > "compile-then-execute" paradigm, instead of the "execute-while parsing" model > employed in PHP 3.0. " > > Since "compile-then-execute" .. , > php4 must have something like "java bytecode" in the memory .. > Why not just write those "bytecode" into disk.. > > Next time when php execute script, only need to check the modify time of source script..and > execute .... > > --- > hjf As far as I understand it, that's exactly what it does. You compile your PHP source to a "bytecode" binary and save it to a disk. Then you run your binary (from the local machine or remotely through a Web browser) with a bytecode execution engine. This would be *exactly* like how Java works. Of course, I could be mistaken. Please correct me if I'm wrong. Stephen. -- Stephen Hui, ARL:UT, Austin, Texas Computer Terms: Programmer - A red-eyed, mumbling mammal capable of conversing with inanimate objects.

« previous php.general (#12473) next »