diff options
author | Andrei Zmievski <andrei@php.net> | 2005-08-11 23:35:03 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2005-08-11 23:35:03 +0000 |
commit | b80cb7bd2f721dad13a97a1300c6dc56934daaf7 (patch) | |
tree | 9ec1241fb278d8c2939ab3a3059ed1fe731e5603 /Zend/zend_objects.c | |
parent | 39072c42c40bb9ca913b2a56e43aaf1be3cb2d91 (diff) | |
download | php-git-b80cb7bd2f721dad13a97a1300c6dc56934daaf7.tar.gz |
Unicode support
Diffstat (limited to 'Zend/zend_objects.c')
-rw-r--r-- | Zend/zend_objects.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index 9b5b854220..83f0d809b5 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -42,9 +42,9 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl zend_class_entry *ce = object->ce; zend_error(EG(in_execution) ? E_ERROR : E_WARNING, - "Call to private %s::__destruct() from context '%s'%s", + "Call to private %v::__destruct() from context '%v'%s", ce->name, - EG(scope) ? EG(scope)->name : "", + EG(scope) ? EG(scope)->name : EMPTY_STR, EG(in_execution) ? "" : " during shutdown ignored"); return; } @@ -55,9 +55,9 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl zend_class_entry *ce = object->ce; zend_error(EG(in_execution) ? E_ERROR : E_WARNING, - "Call to protected %s::__destruct() from context '%s'%s", + "Call to protected %v::__destruct() from context '%v'%s", ce->name, - EG(scope) ? EG(scope)->name : "", + EG(scope) ? EG(scope)->name : EMPTY_STR, EG(in_execution) ? "" : " during shutdown ignored"); return; } @@ -78,7 +78,7 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl zend_call_method_with_0_params(&obj, object->ce, &object->ce->destructor, ZEND_DESTRUCTOR_FUNC_NAME, NULL); if (old_exception) { if (EG(exception)) { - zend_error(E_ERROR, "Ignoring exception from %s::__destruct() while an exception is already active", object->ce->name); + zend_error(E_ERROR, "Ignoring exception from %v::__destruct() while an exception is already active", object->ce->name); zval_ptr_dtor(&EG(exception)); } EG(exception) = old_exception; @@ -167,7 +167,7 @@ ZEND_API zend_object_value zend_objects_clone_obj(zval *zobject TSRMLS_DC) new_obj_val = zend_objects_new(&new_object, old_object->ce TSRMLS_CC); ALLOC_HASHTABLE(new_object->properties); - zend_hash_init(new_object->properties, 0, NULL, ZVAL_PTR_DTOR, 0); + zend_u_hash_init(new_object->properties, 0, NULL, ZVAL_PTR_DTOR, 0, UG(unicode)); zend_objects_clone_members(new_object, new_obj_val, old_object, handle TSRMLS_CC); |