From 2461c9403b2dd32d558b76d78c0977a75d08fa51 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 20 Oct 2002 17:46:16 +0000 Subject: [PATCH] Fix private handling --- Zend/zend_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 8c7cf27a8f..768605e3bb 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2199,8 +2199,8 @@ void zend_do_fetch_property(znode *result, znode *object, znode *property TSRMLS break; } - if (CG(active_class_entry) && (opline_ptr->op1.op_type == IS_CONST)) { - 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)) { + if (CG(active_class_entry) && (opline_ptr->op2.op_type == IS_CONST)) { + 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)) { char *priv_name; int priv_name_length; -- 2.50.1