Skip to content

Commit c927500

Browse files
committed
fix error
1 parent c84843b commit c927500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3/zend_class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ void zend_compile_class_const_decl(zend_ast *ast)
416416
zend_class_entry *ce = CG(active_class_entry);
417417
uint32_t i;
418418

419-
for (i = 0; i < list->children; ++i) { //不清楚这个地方为什么要用list,试了几个例子这个节点都只有一个child,即for只循环一次
419+
for (i = 0; i < list->children; ++i) { //const声明了多个常量,遍历编译每个子节点
420420
zend_ast *const_ast = list->child[i];
421421
zend_ast *name_ast = const_ast->child[0]; //常量名节点
422422
zend_ast *value_ast = const_ast->child[1];//常量值节点

0 commit comments

Comments
 (0)