![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP7源码阅读
鸣鹿何处寻
Our mind never gonna be break!
展开
-
PHP运行的生命周期
原创 2022-03-31 16:43:35 · 1060 阅读 · 0 评论 -
PHP7数组(zend_array)的实现
PHP7数组的实现 1 | 基本概念 1.1数组的语义 1.PHP的数组是一个字典,存着键-值(key-value) 2.PHP数组是有序的。即插入有序且遍历时也是有序的。 PHP使用HashTable来存储键值对,但不能保证其有序性,所以需要做一些额外的设计来保证有序性 1.2数组的概念 zend_array 对应的是HashTable 但PHP数组中分为package array 和hash array所以通过需要通过的两个hash函数来保留的下标的值。 [外链图片转存失败,源站可能有防盗链机制,建原创 2021-08-29 19:55:18 · 514 阅读 · 0 评论 -
C语言一些基本概念
union的写法 union { struct { ZEND_ENDIAN_LOHI_3( zend_uchar type, /* active type */ zend_uchar type_flags, union { uint16_t extra; /* not further specified */ } u) } v; uint32_t type_info; } u1;原创 2021-08-28 04:04:10 · 77 阅读 · 0 评论