Skip to content

Commit a48f879

Browse files
committed
[skip ci] Adjust comment
1 parent 7042ec6 commit a48f879

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_inheritance.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,9 +1478,9 @@ static void do_inherit_property(zend_property_info *parent_info, zend_string *ke
14781478
zend_error_noreturn(E_COMPILE_ERROR, "Access level to %s::$%s must be %s (as in class %s)%s", ZSTR_VAL(ce->name), ZSTR_VAL(key), zend_visibility_string(parent_info->flags), ZSTR_VAL(parent_info->ce->name), (parent_info->flags&ZEND_ACC_PUBLIC) ? "" : " or weaker");
14791479
}
14801480
if (!(child_info->flags & ZEND_ACC_STATIC) && !(parent_info->flags & ZEND_ACC_VIRTUAL)) {
1481-
/* If we added props to the child property, we use the childs slot for
1482-
* storage to keep the parent slot set to null. This automatically picks
1483-
* the slow path in the JIT. */
1481+
/* If we added hooks to the child property, we use the child's slot for
1482+
* storage to keep the parent slot set to IS_UNDEF. This automatically
1483+
* picks the slow path in the JIT. */
14841484
bool use_child_prop = !parent_info->hooks && child_info->hooks;
14851485

14861486
if (use_child_prop && child_info->offset == ZEND_VIRTUAL_PROPERTY_OFFSET) {

0 commit comments

Comments
 (0)