Home  >  Article  >  Backend Development  >  Detailed introduction to Zend engine

Detailed introduction to Zend engine

零下一度
零下一度Original
2017-06-13 09:20:023323browse

one. Preface HashTable is the soul of PHP, because HashTable is widely used in Zend engine, such as variable table, constant table, function table, etc., which are adapted to be saved by HashTable. In addition, PHP arrays are also implemented by using HashTble, so , Only by understanding PHP's HashTable can you truly understand PHP. For the convenience of reading, here are the basic concepts that appear in the implementation of HashTable. A hash table is a data structure that maps specific keys to specific values ​​through a hash function. It maintains a one-to-one correspondence between keys and values. Key: An identifier used to manipulate data, such as an index in a PHP array, or a string key, etc. Slot (slot/bucket): A unit in the hash table used to store data, which is the container where the data is actually stored. Hash function: A function that maps keys to the location of the slot where the data should be stored. Hash collision: A situation where a hash function maps two different keys to the same index. PHP

1. PHP Kernel-A brief explanation of the soul of PHP HashTble

Detailed introduction to Zend engine

## Introduction: 1. Preface HashTable is the soul of PHP, because HashTable is widely used in Zend engine, such as variable table, constant table, function table, etc., which are adapted to be saved by HashTable. In addition, PHP arrays are also implemented by using HashTble, so , Only by understanding PHP's HashTable can you truly understand PHP. For the convenience of reading, here are the basic concepts that appear in the implementation of HashTable. A hash table is a hash function that maps specific keys to

2. PHP Kernel-Zend Engine Detailed Explanation

Detailed introduction to Zend engine

Introduction: In the previous chapter, we introduced the life cycle of PHP, PHP’s SAPI, and SAPI are at the upper level of the entire PHP architecture, while the real script Execution is mainly done by the Zend engine. In this section we introduce the execution of PHP scripts. Currently, programming languages ​​can be divided into two major categories: the first category is compiled languages ​​such as C/C++, .NET, and Java. Their commonality is: the source code must be compiled before running, and then the compiled target can be run. document. The second category is such as: PHP, Javascript, Ru

##3.

[Translation] [php extension development and embedded] Chapter 10 - php4 objects

Detailed introduction to Zend engine

Introduction: Once upon a time, in very early versions, php did not support any object-oriented programming syntax. In php4 The Zend engine (ZE1) was introduced, and several new features appeared, including object data types.

4.

php kernel analysis (5)-zval

Detailed introduction to Zend engine

Introduction: The php version read here is PHP-7.1.0 RC3, and the platform for reading the code is linux actual , starting from this function, it has entered the scope of the zend engine. zend_eval_string_ex(exec_direct, NULL, "Command line code", 1) actually calls Zend/zend_exec...

5.

The principle of modifying the Zend engine to implement PHP source code encryption And practice

Detailed introduction to Zend engine

Introduction: The source code of PHP files are all clear text, which is suitable for some commercial purposes , not suitable. Therefore, consider using encryption to protect the source code.

6.

PHP7 Parameters, Arrays and Zvals

Detailed introduction to Zend engine

Introduction: Now you can declare simple functions and return static or dynamic values. Define INI options and declare internal or global values. This chapter will introduce how to receive the value of the parameter passed in from the calling script (php file), and how the PHP kernel and Zend engine operate internal variables.

7. Macro for PHP expansion return value in zend engine

Introduction::This article mainly introduces the PHP expansion return value in zend engine Value macros, students who are interested in PHP tutorials can refer to it.

8. In-depth understanding of PHP core II overview-PHP life cycle and Zend engine

Introduction::This article The article mainly introduces an in-depth understanding of the PHP core II overview - PHP life cycle and Zend engine. Students who are interested in PHP tutorials can refer to it.

9. In-depth understanding of the PHP kernel - Overview - PHP life cycle and Zend engine

Introduction::This article The article mainly introduces an overview of in-depth understanding of the PHP kernel-PHP life cycle and Zend engine. Students who are interested in PHP tutorials can refer to it.

10. Grammar: Implementation of IF judgment

Detailed introduction to Zend engine

##Introduction:: Grammar: Implementation of IF judgment: When interviewing PHP, I often encounter a question of judging whether various types of null values ​​​​are true: $a = ''; $a = null $a = false;if($a){...} if(isset($a)){...} if(empty($a)){...} ... Let’s take a brief look at how if is handled in the zend engine from the following example:

Some questions encountered by PHP programmers learning C

The above is the detailed content of Detailed introduction to Zend engine. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn