mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix Windows failure (#14096)
This commit is contained in:
parent
4167d75024
commit
378b015360
2 changed files with 9 additions and 24 deletions
|
@ -80,14 +80,9 @@ xmlEntityPtr dom_entity_reference_fetch_and_sync_declaration(xmlNodePtr referenc
|
|||
return entity;
|
||||
}
|
||||
|
||||
int dom_entity_reference_child_read(dom_object *obj, zval *retval)
|
||||
zend_result dom_entity_reference_child_read(dom_object *obj, zval *retval)
|
||||
{
|
||||
xmlNodePtr nodep = dom_object_get_node(obj);
|
||||
|
||||
if (nodep == NULL) {
|
||||
php_dom_throw_error(INVALID_STATE_ERR, true);
|
||||
return FAILURE;
|
||||
}
|
||||
DOM_PROP_NODE(xmlNodePtr, nodep, obj);
|
||||
|
||||
xmlEntityPtr entity = dom_entity_reference_fetch_and_sync_declaration(nodep);
|
||||
if (entity == NULL) {
|
||||
|
@ -99,27 +94,17 @@ int dom_entity_reference_child_read(dom_object *obj, zval *retval)
|
|||
return SUCCESS;
|
||||
}
|
||||
|
||||
int dom_entity_reference_text_content_read(dom_object *obj, zval *retval)
|
||||
zend_result dom_entity_reference_text_content_read(dom_object *obj, zval *retval)
|
||||
{
|
||||
xmlNodePtr nodep = dom_object_get_node(obj);
|
||||
|
||||
if (nodep == NULL) {
|
||||
php_dom_throw_error(INVALID_STATE_ERR, true);
|
||||
return FAILURE;
|
||||
}
|
||||
DOM_PROP_NODE(xmlNodePtr, nodep, obj);
|
||||
|
||||
dom_entity_reference_fetch_and_sync_declaration(nodep);
|
||||
return dom_node_text_content_read(obj, retval);
|
||||
}
|
||||
|
||||
int dom_entity_reference_child_nodes_read(dom_object *obj, zval *retval)
|
||||
zend_result dom_entity_reference_child_nodes_read(dom_object *obj, zval *retval)
|
||||
{
|
||||
xmlNodePtr nodep = dom_object_get_node(obj);
|
||||
|
||||
if (nodep == NULL) {
|
||||
php_dom_throw_error(INVALID_STATE_ERR, true);
|
||||
return FAILURE;
|
||||
}
|
||||
DOM_PROP_NODE(xmlNodePtr, nodep, obj);
|
||||
|
||||
dom_entity_reference_fetch_and_sync_declaration(nodep);
|
||||
return dom_node_child_nodes_read(obj, retval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue