summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 9db4d54192..e38940f38a 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -841,17 +841,17 @@ int php_libxml_register_export(zend_class_entry *ce, php_libxml_export_node expo
php_libxml_initialize();
export_hnd.export_func = export_function;
- if (zend_hash_add(&php_libxml_exports, ce->name, ce->name_length + 1, &export_hnd, sizeof(export_hnd), NULL) == SUCCESS) {
+ if (zend_hash_add(&php_libxml_exports, ce->name.s, ce->name_length + 1, &export_hnd, sizeof(export_hnd), NULL) == SUCCESS) {
int ret;
UChar *uname;
uname = malloc(UBYTES(ce->name_length+1));
- u_charsToUChars(ce->name, uname, ce->name_length+1);
- ret = zend_u_hash_add(&php_libxml_exports, IS_UNICODE, uname, ce->name_length + 1, &export_hnd, sizeof(export_hnd), NULL);
- free(uname);
- return ret;
- }
- return FAILURE;
+ u_charsToUChars(ce->name.s, uname, ce->name_length+1);
+ ret = zend_u_hash_add(&php_libxml_exports, IS_UNICODE, (zstr)uname, ce->name_length + 1, &export_hnd, sizeof(export_hnd), NULL);
+ free(uname);
+ return ret;
+ }
+ return FAILURE;
}
PHP_LIBXML_API xmlNodePtr php_libxml_import_node(zval *object TSRMLS_DC)