We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eff4c3 commit 331e6aeCopy full SHA for 331e6ae
ext/tidy/tidy.c
@@ -616,12 +616,14 @@ static void tidy_add_node_default_properties(PHPTidyObj *obj)
616
do {
617
const char *attr_name = tidyAttrName(tempattr);
618
if (attr_name) {
619
+ zval value;
620
const char *val = tidyAttrValue(tempattr);
621
if (val) {
- add_assoc_string(&attribute, attr_name, val);
622
+ ZVAL_STRING_FAST(&value, val);
623
} else {
- add_assoc_str(&attribute, attr_name, zend_empty_string);
624
+ ZVAL_EMPTY_STRING(&value);
625
}
626
+ zend_hash_str_add_new(Z_ARRVAL(attribute), attr_name, strlen(attr_name), &value);
627
628
} while((tempattr = tidyAttrNext(tempattr)));
629
0 commit comments