Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/xmlreader/php_xmlreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void xmlreader_unset_property(zend_object *object, zend_string *name, void **cac
xmlreader_prop_handler *hnd = xmlreader_get_prop_handler(name, cache_slot);

if (hnd != NULL) {
zend_throw_error(NULL, "Cannot unset %s::$%s", ZSTR_VAL(object->ce->name), ZSTR_VAL(name));
zend_throw_error(NULL, "Cannot unset %pS::$%pS", object->ce->name, name);
return;
}

Expand Down Expand Up @@ -1282,7 +1282,7 @@ PHP_METHOD(XMLReader, expand)
/* Note: cannot use NODE_GET_OBJ here because of the wrong return type */
domobj = Z_LIBXML_NODE_P(basenode);
if (UNEXPECTED(domobj->node == NULL)) {
php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", ZSTR_VAL(Z_OBJCE_P(basenode)->name));
php_error_docref(NULL, E_WARNING, "Couldn't fetch %pS", Z_OBJCE_P(basenode)->name);
RETURN_FALSE;
}
node = domobj->node->node;
Expand Down
Loading