[php-src] master: [`%pS` migration] Use `%pS` in ext/dom/php_dom.c

From: Date: Sun, 01 Nov 2026 02:56:30 +0000
Subject: [php-src] master: [`%pS` migration] Use `%pS` in ext/dom/php_dom.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143105@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-10-31T19:06:28-07:00 Commit: https://github.com/php/php-src/commit/a78d5a604563327234eb54a7392adb77aad5c32e Raw diff: https://github.com/php/php-src/commit/a78d5a604563327234eb54a7392adb77aad5c32e.diff [%pS migration] Use %pS in ext/dom/php_dom.c Changed paths: M ext/dom/php_dom.c Diff: diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 845507924c1e..4e55b04ac0d4 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -482,7 +482,7 @@ static void dom_unset_property(zend_object *object, zend_string *member, void ** dom_object *obj = php_dom_obj_from_obj(object); if (obj->prop_handler != NULL && zend_hash_exists(obj->prop_handler, member)) { - zend_throw_error(NULL, "Cannot unset %s::$%s", ZSTR_VAL(object->ce->name), ZSTR_VAL(member)); + zend_throw_error(NULL, "Cannot unset %pS::$%pS", object->ce->name, member); return; } @@ -2307,7 +2307,7 @@ static bool dom_nodemap_or_nodelist_process_offset_as_named(zval *offset, zend_l static zval *dom_nodelist_read_dimension(zend_object *object, zval *offset, int type, zval *rv) { if (UNEXPECTED(!offset)) { - zend_throw_error(NULL, "Cannot access %s without offset", ZSTR_VAL(object->ce->name)); + zend_throw_error(NULL, "Cannot access %pS without offset", object->ce->name); return NULL; } @@ -2399,7 +2399,7 @@ void php_dom_get_content_into_zval(const xmlNode *nodep, zval *return_value, boo static zval *dom_nodemap_read_dimension(zend_object *object, zval *offset, int type, zval *rv) { if (UNEXPECTED(!offset)) { - zend_throw_error(NULL, "Cannot access %s without offset", ZSTR_VAL(object->ce->name)); + zend_throw_error(NULL, "Cannot access %pS without offset", object->ce->name); return NULL; } @@ -2443,7 +2443,7 @@ static int dom_nodemap_has_dimension(zend_object *object, zval *member, int chec static zval *dom_modern_nodemap_read_dimension(zend_object *object, zval *offset, int type, zval *rv) { if (UNEXPECTED(!offset)) { - zend_throw_error(NULL, "Cannot append to %s", ZSTR_VAL(object->ce->name)); + zend_throw_error(NULL, "Cannot append to %pS", object->ce->name); return NULL; }

« previous php.cvs (#143105) next »