Beginner's entry: describe the core Zend of PHP4

Source: Internet
Author: User
I. summary: The name of Zend Engine is a combination of the names of ZeevSuraski and AndiGutmans senior designers responsible for core development in PHP. the target engineer of the development aims to develop a new script performance mechanism, and PHP4 is the first implementation of the new Zend Engine. overview:

The name of Zend Engine is a combination of the names of Zeev Suraski and Andi Gutmans senior designers responsible for core development in PHP. in order to develop a new script performance mechanism, the development target engineer PHP4 is the first implementation product of the new Zend Engine. In some special test environments, Zend (PHP $) performs several to several hundred times faster than PHP3 and ASP, this also means that the same person on the website's backend CGI interface is not PHP4 Zend. (Of course, the skills are constantly improved. maybe a new engine will be displayed one day .)

After more than two years of development, the Zend Engine has become a generalized programming environment similar to VBA functions. it not only has the traditional PHP function, but also increases the efficacy of evacuation objects (COM, in addition, it can be implemented on different equal platforms. With this potential, the Terminator of VBA is not Zend.

Zend made the most complete commitment to the session with the biggest defect before PHP3 in PHP4, and participated in some future functions, such as CyberCash... and so on.

In the opensource community, PHP/Zend is the best example of the only one that can maintain consistency, but has not yet been regarded as a competitor by Microsoft. It has completely lost ASP behind it and is developing towards the VBA environment. Microsoft only tries its best to deal with Linux and does not pay attention to threats from PHP/Zend.

The Web server finds that it is a PHP request and needs to be parsed by the PHP engine (based on the expanded name of the file), so it is sent to the Zend Engine of PHP4.

The Zend Engine reads files from the hard disk and sends them to the Zend online Compiler (Run-time Compiler) for literal translation. (Online compilation may be omitted after Zend Compiler is released in the future .)

The online fulfillment unit (Excutor) of the Zend Engine implements compiled PHP programs. When necessary, find the relevant modules to perform cooperative actions (such as XML, IMAP, ODBC ).

Zend packs the fulfillment results into HTML files and sends them to the Web server.

The Web server transmits the results over the network to the browser of the application.

Zend has the following four types of products:

Zend Engine: currently, Zend Engine is only a PHP4 product, providing functions similar to Microsoft VBA and cross-platform. At present, the popularity in the network has also given the best witness to the Zend Engine. Among Zend's four major products, this is currently the only mature product.

Zend Optimizer: The Zend extreme tool re-adjusts the PHP core, so that PHP programs can perform more efficiently. It is important to speed up PHP code execution and reduce the CPU burden, reducing the waiting time.

Zend Cache: Zend Cache takes the PHP program to the memory of the Web server, so that the system no longer needs to read the PHP program from the hard disk, which can greatly shorten the system response time and reduce the network load. Materials with Cache can be reduced without literal translation.

Zend Compiler: Zend Compiler this is probably the ultimate weapon of Zend. it allows PHP program Code to exist in the Zend Intermediate Code (ZIC, Zend Intermediate Code) after compilation.

It can protect the source code of PHP and prevent users from seeing it. This ensures the security of the source code of PHP. It is predicted that the presentation of this product will have a great impact on all networks. The PHP code library will be visible everywhere, and the software industry will also provide relevant function libraries or object libraries to PHP programmers. At that time, there may be PHP conflicts with Java.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.