mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix DOM warnings
This commit is contained in:
parent
2b133e9149
commit
d85ab21ac4
15 changed files with 89 additions and 80 deletions
|
@ -127,7 +127,7 @@ int dom_processinginstruction_data_read(dom_object *obj, zval *retval TSRMLS_DC)
|
|||
}
|
||||
|
||||
if ((content = xmlNodeGetContent(nodep)) != NULL) {
|
||||
ZVAL_STRING(retval, content);
|
||||
ZVAL_STRING(retval, (char *) content);
|
||||
xmlFree(content);
|
||||
} else {
|
||||
ZVAL_EMPTY_STRING(retval);
|
||||
|
@ -148,7 +148,7 @@ int dom_processinginstruction_data_write(dom_object *obj, zval *newval TSRMLS_DC
|
|||
|
||||
str = zval_get_string(newval);
|
||||
|
||||
xmlNodeSetContentLen(nodep, str->val, str->len + 1);
|
||||
xmlNodeSetContentLen(nodep, (xmlChar *) str->val, str->len + 1);
|
||||
|
||||
zend_string_release(str);
|
||||
return SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue