Skip to content

Commit 9cabdb6

Browse files
[%pS migration] Use %pS in ext/xmlreader
1 parent bd334e6 commit 9cabdb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ext/xmlreader/php_xmlreader.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void xmlreader_unset_property(zend_object *object, zend_string *name, void **cac
213213
xmlreader_prop_handler *hnd = xmlreader_get_prop_handler(name, cache_slot);
214214

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

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

0 commit comments

Comments
 (0)