mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
add unicode support
update test
This commit is contained in:
parent
ae4d9f326c
commit
f85e695409
17 changed files with 311 additions and 132 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue