Deep understanding of the PHP kernel
Http://www.php-internal.com/book/?p=index
?
Directory
Chapter I preparatory work and background knowledge
- The first section environment construction
- Section II source code layout and reading methods
- Section III Common Code
- Fourth Section Summary
Chapter II Execution of user code
- First section of PHP life cycle
- The second section starts with SAPI.
- Apache Module
- Embedded
- Fastcgi
- Section III Zend Engine and script execution
- Lexical analysis and grammatical analysis
- OpCode
- Attached: Find opcode concrete implementation
- Fourth Section Summary
Chapter III Variables and data types
- The internal structure of the first section variable
- Hash table (HashTable)
- PHP's Hash Table implementation
- Second section constant
- Section three pre-defined variables
- Section Fourth static variables
- Section fifth implementation of type hints
- The life cycle of the sixth section variable
- Assignment and destruction of variables
- Scope of the variable
- Global statement
- Section Seventh data type conversions
- Eighth Section Summary
The realization of the fourth chapter function
- The inner structure of the first section function
- The internal structure of the function
- Conversion between functions
- Definition of the second section function, parameters and return values
- Definition of a function
- Parameters of the function
- Return of function
- Section III invocation and execution of functions
- Section fourth anonymous functions and closures
- Fifth Section Summary
Chapter Fifth class and Object-oriented
- Structure and implementation of the first section class
- The member variables and methods of the second section class
- Section III Implementation of access control
- Fourth class inheritance, polymorphism and abstract classes
- Fifth section Magic Method, delay binding and static member
- Sixth section PHP reserved classes and special classes
- Seventh Section Object
- Eighth section namespace
- Nineth Section Summary
Sixth Chapter Memory Management
- First section Memory Management overview
- Section II, memory Management in PHP
- Section III Memory use: Application and destruction
- Section fourth garbage collection mechanism
- A new garbage collection mechanism
- Section fifth cache in memory management
- Sixth section copy on write (Copy-on-write)
- Seventh Section Summary
Seventh Chapter Zend Virtual machine
- First section virtual machine overview
- The implementation of the second section syntax
- Lexical analysis
- Syntax analysis
- To implement your own grammar
- The execution of the middle code in the third section
- The fourth section of the source code encryption and decryption implementation
- Fifth Section Summary
Eighth Chapter thread Safety
Nineth Chapter error and exception handling
Chapter Tenth file and stream
The 11th Chapter Network programming
12th Chapter Configuration File
The 13th chapter expands the development
14th PHP new Features
- Namespaces (Namespace)
- anonymous functions
- Closed Package
- Traits
15th Chapter cphp: PHP Compiler
The 16th Chapter Development Example
- First section opcode cache extension
- Section II Performance monitoring and optimization expansion
- The third section extends the PHP syntax, adding syntax features to PHP