Skip to content

Commit 2461c94

Browse files
committed
Fix private handling
1 parent 8521176 commit 2461c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,8 +2199,8 @@ void zend_do_fetch_property(znode *result, znode *object, znode *property TSRMLS
21992199
break;
22002200
}
22012201

2202-
if (CG(active_class_entry) && (opline_ptr->op1.op_type == IS_CONST)) {
2203-
if (zend_hash_exists(&CG(active_class_entry)->private_properties, opline_ptr->op1.u.constant.value.str.val, opline_ptr->op1.u.constant.value.str.len+1)) {
2202+
if (CG(active_class_entry) && (opline_ptr->op2.op_type == IS_CONST)) {
2203+
if (zend_hash_exists(&CG(active_class_entry)->private_properties, opline_ptr->op2.u.constant.value.str.val, opline_ptr->op2.u.constant.value.str.len+1)) {
22042204
char *priv_name;
22052205
int priv_name_length;
22062206

0 commit comments

Comments
 (0)