|
|
|
@ -798,11 +798,14 @@ int php_libxml_register_export(zend_class_entry *ce, php_libxml_export_node expo |
|
|
|
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) { |
|
|
|
int ret; |
|
|
|
UChar *uname; |
|
|
|
|
|
|
|
uname = malloc(UBYTES(ce->name_length+1)); |
|
|
|
u_charsToUChars(ce->name, uname, ce->name_length+1); |
|
|
|
return zend_u_hash_add(&php_libxml_exports, IS_UNICODE, uname, ce->name_length + 1, &export_hnd, sizeof(export_hnd), NULL); |
|
|
|
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; |
|
|
|
} |
|
|
|
|