]> granicus.if.org Git - php/commitdiff
Fix private handling
authorStanislav Malyshev <stas@php.net>
Sun, 20 Oct 2002 17:46:16 +0000 (17:46 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 20 Oct 2002 17:46:16 +0000 (17:46 +0000)
Zend/zend_compile.c

index 8c7cf27a8f180a7fbdf9b1d5f5d14c0b9c508ca2..768605e3bb1170132f2db5c62aaf589928a3ce43 100644 (file)
@@ -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;