cvs: ZendEngine2 / zend.c
| From: | Dmitry Stogov | Date: | Tue, 30 Aug 2005 07:19:08 +0000 |
| Subject: | cvs: ZendEngine2 / zend.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4080@lists.php.net to get a copy of this message | ||
dmitry Tue Aug 30 03:19:08 2005 EDT
Modified files:
/ZendEngine2 zend.c
Log:
Fixed unicode support bug
http://cvs.php.net/diff.php/ZendEngine2/zend.c?r1=1.318&r2=1.319&ty=u
Index: ZendEngine2/zend.c
diff -u ZendEngine2/zend.c:1.318 ZendEngine2/zend.c:1.319
--- ZendEngine2/zend.c:1.318 Thu Aug 25 09:53:17 2005
+++ ZendEngine2/zend.c Tue Aug 30 03:19:05 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.c,v 1.318 2005/08/25 13:53:17 dmitry Exp $ */
+/* $Id: zend.c,v 1.319 2005/08/30 07:19:05 dmitry Exp $ */
#include "zend.h"
#include "zend_extensions.h"
@@ -875,7 +875,7 @@
*/
/* 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);