cvs: ZendEngine2 / zend_compile.c zend_objects.c

From: Date: Tue, 05 Nov 2002 18:16:11 +0000
Subject: cvs: ZendEngine2 / zend_compile.c zend_objects.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-561@lists.php.net to get a copy of this message
andi Tue Nov 5 13:16:11 2002 EDT Modified files: /ZendEngine2 zend_objects.c zend_compile.c Log: - Change the automatically created variable $clone in __clone() to - $that as discussed at the PHP Conference. If there are any objections - alternative names please let me know. The reason for changing it from - $clone is because $clone sounds as if it's the newly cloned object and - not the old one. Index: ZendEngine2/zend_objects.c diff -u ZendEngine2/zend_objects.c:1.24 ZendEngine2/zend_objects.c:1.25 --- ZendEngine2/zend_objects.c:1.24 Wed Sep 4 05:07:58 2002 +++ ZendEngine2/zend_objects.c Tue Nov 5 13:16:11 2002 @@ -106,7 +106,7 @@ zend_hash_init(new_object->properties, 0, NULL, ZVAL_PTR_DTOR, 0); ZEND_INIT_SYMTABLE(&symbol_table); - ZEND_SET_SYMBOL(&symbol_table, "clone", old_obj); + ZEND_SET_SYMBOL(&symbol_table, "that", old_obj); call_user_function_ex(NULL, &new_obj, clone_func_name, &retval_ptr, 0, NULL, 0, &symbol_table TSRMLS_CC); Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.319 ZendEngine2/zend_compile.c:1.320 --- ZendEngine2/zend_compile.c:1.319 Tue Nov 5 12:21:23 2002 +++ ZendEngine2/zend_compile.c Tue Nov 5 13:16:11 2002 @@ -2236,8 +2236,8 @@ if (CG(in_clone_method)) { if ((opline_ptr->op1.op_type == IS_CONST) && (opline_ptr->op1.u.constant.type == IS_STRING) && - (opline_ptr->op1.u.constant.value.str.len == (sizeof("clone")-1)) && - !memcmp(opline_ptr->op1.u.constant.value.str.val, "clone", sizeof("clone"))) { + (opline_ptr->op1.u.constant.value.str.len == (sizeof("that")-1)) && + !memcmp(opline_ptr->op1.u.constant.value.str.val, "that", sizeof("that"))) { if (CG(active_class_entry) && (opline.op2.op_type == IS_CONST)) { if (zend_hash_exists(&CG(active_class_entry)->private_properties, opline.op2.u.constant.value.str.val, opline.op2.u.constant.value.str.len+1)) { char *priv_name;

« previous php.zend-engine.cvs (#561) next »