Detailed introduction to the Zend Engine

Source: Internet
Author: User
Tags learn php php source code sapi zend
One. Preface Hashtable is the soul of PHP, because in the Zend engine a lot of use of Hashtable, such as variable table, constant table, function table, and so on, these are adapted to Hashtable save, in addition, the PHP array is implemented by using hashtble, so, Learn PHP's Hashtable to really understand PHP. To facilitate reading, here is a list of the basic concepts that appear in the Hashtable implementation. A hash table is a data structure that maps a specific key to a specific value through a hash function that maintains a one by one correspondence between the key and the value. Key: A marker used to manipulate data, such as an index in a PHP array, a string key, and so on. Slot (Slot/bucket): A cell in a hash table used to hold data, that is, the container in which the data is actually stored. hash function: A function that maps a key to the location of the slot where the data should be stored. Hash conflict (Hash collision): A hash function maps two different keys to the same index. Php

1. PHP kernel-Simply explain PHP soul hashtble

Introduction: One. Preface Hashtable is the soul of PHP, because in the Zend engine a lot of use of Hashtable, such as variable table, constant table, function table, and so on, these are adapted to Hashtable save, in addition, the PHP array is implemented by using hashtble, so, Learn PHP's Hashtable to really understand PHP. To facilitate reading, here is a list of the basic concepts that appear in the Hashtable implementation. A hash table is a hash function that maps a specific key to a

2. PHP Kernel-zend engine explanation

Introduction: In the previous section of the PHP life cycle, PHP Sapi,sapi in the entire structure of PHP, and the actual execution of the script is mainly done by the Zend engine, this section we introduce the execution of PHP script. There are two main types of programming languages: The first is a compiled language like C + +,. NET, and Java, which has the common denominator that the source code must be compiled before running, and then the compiled target file will be run. Class II: PHP, Javascript, Ru

3. [Translate][php extended development and Embedded] 10th chapter-PHP4 Objects

Summary: Once upon a time, in an earlier version, PHP did not support any object-oriented programming syntax. Introducing the Zend Engine (ZE1) in PhP4, several new features have emerged, including object data types.

4. PHP Kernel Analysis (v)-zval

Introduction: The PHP version read here is PHP-7.1.0 RC3, reading the code platform for Linux actually, starting from this function, it has entered the scope of the Zend engine. ZEND_EVAL_STRING_EX (Exec_direct, NULL, "Command Line Code", 1) is actually called zend/zend_exec ...

5. Modify the Zend Engine implementation of PHP source code encryption principle and practice

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

6. PHP7 parameters, arrays, and zvals

Summary: To this already can declare simple function, return static or dynamic value. Define the INI option, declaring an internal numeric value or a global value. This section describes how to receive values for incoming parameters from the calling script (php file), and how the PHP kernel and Zend engine operate internal variables.

7. Zend The PHP extension in the engine to return the value of the macro

Introduction:: This article mainly introduces the Zend engine in the PHP extension return value of the macro, for the PHP tutorial interested students can refer to.

8. In-depth understanding of PHP Kernel Two overview-php lifecycle and Zend Engine

Introduction:: This article mainly introduces the in-depth understanding of PHP Kernel two overview-php life cycle and Zend engine, for PHP tutorial interested students can refer to.

9. In-depth understanding of PHP Kernel Overview-php lifecycle and Zend Engine

Introduction:: This article mainly introduces the deep understanding PHP Kernel An overview-php life cycle and Zend engine, for PHP tutorial interested students can refer to.

10. Syntax: implementation of IF judgment

Introduction:: Syntax: The implementation of If judgment: when interviewing PHP often encounter a question of judging whether the various types of NULL value is true: $a = "; $a = null$a = False;if ($a) {...} if (Isset ($a)) {...} if (empty ($a)) {...} ... Let's take a look at the following example of how the if is handled in the Zend Engine: <?php$a = "; Array (); if ($a) {echo "Y";} The example here is simple, the result will be what also

"Related question and answer recommendation":

The implementation principle of error after the return value of PHP extension development function is not used

Some questions that PHP programmer C encounters

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.