Tag

Internals

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
May 27, 2022 · Backend Development

Understanding the PHP zval Structure in the Source Code

This article examines how PHP stores variables internally by analyzing the zval structure defined in the C source code, detailing its fields, type flags, memory layout, and associated macros, and explains why each variable occupies 16 bytes at runtime.

BackendC++Internals
0 likes · 8 min read
Understanding the PHP zval Structure in the Source Code
php中文网 Courses
php中文网 Courses
Jul 7, 2021 · Backend Development

Understanding PHP SAPI Internals: CGI Module Structure and Startup Process

This article provides an in‑depth English overview of PHP’s SAPI architecture, detailing the CGI SAPI module structure, the core _sapi_module_struct and sapi_globals definitions, and walking through the startup sequence including sapi_startup, sapi_globals_ctor, and FastCGI initialization with code examples.

BackendC++CGI
0 likes · 10 min read
Understanding PHP SAPI Internals: CGI Module Structure and Startup Process