diff options
| author | Andi Gutmans <andi@php.net> | 2002-11-05 18:16:11 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2002-11-05 18:16:11 +0000 |
| commit | f7f9721bdb4205baff07dcb3d670e12af9e03f0f (patch) | |
| tree | 356c290a4f6db7d990dabe928e372e970b5bc2a1 /Zend/zend_objects.c | |
| parent | 307024dc6803bf430ef0dc582fbaad61b8ce46dd (diff) | |
| download | php-git-f7f9721bdb4205baff07dcb3d670e12af9e03f0f.tar.gz | |
- 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.
Diffstat (limited to 'Zend/zend_objects.c')
| -rw-r--r-- | Zend/zend_objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index a6b7579350..ec9f11d27b 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -106,7 +106,7 @@ ZEND_API zend_object_value zend_objects_clone_obj(zval *zobject TSRMLS_DC) 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); |
