Skip to content

Commit e4b4e27

Browse files
authored
Merge pull request pangudashu#20 from zimuyang/master
Update zend_executor.md and zend_object.md
2 parents 366c812 + fdaf1f8 commit e4b4e27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

3/zend_executor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ZEND_API zend_executor_globals executor_globals;
6262
struct _zend_execute_data {
6363
const zend_op *opline; //指向当前执行的opcode,初始时指向zend_op_array起始位置
6464
zend_execute_data *call; /* current call */
65-
zval *return_value; //返回值指针 */
65+
zval *return_value; //返回值指针
6666
zend_function *func; //当前执行的函数(非函数调用时为空)
6767
zval This; //这个值并不仅仅是面向对象的this,还有另外两个值也通过这个记录:call_info + num_args,分别存在zval.u1.reserved、zval.u2.num_args
6868
zend_class_entry *called_scope; //当前call的类

3/zend_object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static int zend_std_compare_objects(zval *o1, zval *o2)
437437
"==="的比较通过函数`zend_is_identical()`处理,比较简单,这里不再展开。
438438

439439
#### 3.4.2.6 对象的销毁
440-
object与string、array等类型不同,它是个符合类型,所以它的销毁过程更加复杂,赋值、函数调用结束或主动unset等操作中如果发现object引用计数为0则将触发销毁动作。
440+
object与string、array等类型不同,它是个复合类型,所以它的销毁过程更加复杂,赋值、函数调用结束或主动unset等操作中如果发现object引用计数为0则将触发销毁动作。
441441
```php
442442
//情况1
443443
$obj1 = new my_function();

0 commit comments

Comments
 (0)