Hello,
On 06/08/2004 07:05 PM, Electroteque wrote:
Hi there silly question, I was wondering if there is such a php compiler available like javac to compile php classes into bytecode so they are native to the php module and dont need to be compiled, but without any extension like turk to make it work ? Unfortunately I want this functionality so the classes i include are already precompiled and dont need any parsing whatsoever, and the systems guy doesnt understand the importance of caching extensions :\ Let me know
No. The PHP to bytecode compiler is already part the Zend engine that comes with every PHP version since PHP 4.0.0 . What extensions like Turck do is to encode and decode the compiled bytecodes to and from files.
There is no such capability built in PHP because obviously the Zend company wants to make money from selling their encoder. If such functionality was made available in the PHP core, Zend would hardly make any money from their encoder.
Now, if you really want a real PHP compiler, you may want to try RoadSend PHP compiler. It generates standalone shared libraries from your PHP code. It does not need the actual PHP runtime library to run.
http://www.roadsend.com/home/index.php?pageID=compiler
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php