add unicode support

update test
This commit is contained in:
Rob Richards 2006-08-04 18:11:27 +00:00
parent ae4d9f326c
commit f85e695409
17 changed files with 311 additions and 132 deletions

View file

@ -51,11 +51,10 @@ PHP_METHOD(domentityreference, __construct)
int name_len, name_valid;
php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC);
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &id, dom_entityreference_class_entry, &name, &name_len) == FAILURE) {
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&", &id, dom_entityreference_class_entry, &name, &name_len, UG(utf8_conv)) == FAILURE) {
php_std_error_handling();
return;
}
php_std_error_handling();
name_valid = xmlValidateName((xmlChar *) name, 0);