From: Dmitry Stogov Date: Tue, 30 Aug 2005 07:19:05 +0000 (+0000) Subject: Fixed unicode support bug X-Git-Tag: PRE_NEW_OCI8_EXTENSION~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c75b5a798f5aa0e10e5a3bc3cfda98e556c37fe5;p=php Fixed unicode support bug --- diff --git a/Zend/zend.c b/Zend/zend.c index 1f561216be..644ed615b8 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -875,7 +875,7 @@ static void class_to_unicode(zend_class_entry **ce) */ /* Copy constants */ zend_u_hash_init_ex(&new_ce->constants_table, (*ce)->constants_table.nNumOfElements, NULL, (*ce)->constants_table.pDestructor, 1, 1, 0); - zend_hash_copy(&new_ce->constants_table, &(*ce)->constants_table, (copy_ctor_func_t) zval_ptr_to_unicode, &tmp_const, sizeof(zend_constant)); + zend_hash_copy(&new_ce->constants_table, &(*ce)->constants_table, (copy_ctor_func_t) zval_ptr_to_unicode, &tmp_zval, sizeof(zval*)); /* Copy properties */ zend_u_hash_init_ex(&new_ce->properties_info, (*ce)->properties_info.nNumOfElements, NULL, (*ce)->properties_info.pDestructor/*(dtor_func_t)zend_destroy_property_info_internal*/, 1, 1, 0);