[php-src] master: [`%pS` migration] Use `%pS` in ext/dom/node.c
| From: | Daniel Scherzer | Date: | Sun, 01 Nov 2026 02:56:26 +0000 |
| Subject: | [php-src] master: [`%pS` migration] Use `%pS` in ext/dom/node.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143103@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-10-31T19:06:27-07:00
Commit: https://github.com/php/php-src/commit/ff05c67e2ca58973f1e4150ec0bb1171ac388a7d
Raw diff: https://github.com/php/php-src/commit/ff05c67e2ca58973f1e4150ec0bb1171ac388a7d.diff
[
%pS migration] Use %pS in ext/dom/node.c
Changed paths:
M ext/dom/node.c
Diff:
diff --git a/ext/dom/node.c b/ext/dom/node.c
index a3d40a92bfb7..a562328cd26e 100644
--- a/ext/dom/node.c
+++ b/ext/dom/node.c
@@ -2691,14 +2691,14 @@ PHP_METHOD(Dom_Node, compareDocumentPosition)
PHP_METHOD(Dom_Node, __construct)
{
- zend_throw_error(NULL, "Cannot directly construct %s, use document methods instead",
ZSTR_VAL(Z_OBJCE_P(ZEND_THIS)->name));
+ zend_throw_error(NULL, "Cannot directly construct %pS, use document methods instead",
Z_OBJCE_P(ZEND_THIS)->name);
}
PHP_METHOD(DOMNode, __sleep)
{
ZEND_PARSE_PARAMETERS_NONE();
- zend_throw_exception_ex(NULL, 0, "Serialization of '%s' is not allowed, unless
serialization methods are implemented in a subclass", ZSTR_VAL(Z_OBJCE_P(ZEND_THIS)->name));
+ zend_throw_exception_ex(NULL, 0, "Serialization of '%pS' is not allowed, unless
serialization methods are implemented in a subclass", Z_OBJCE_P(ZEND_THIS)->name);
RETURN_THROWS();
}
@@ -2706,7 +2706,7 @@ PHP_METHOD(DOMNode, __wakeup)
{
ZEND_PARSE_PARAMETERS_NONE();
- zend_throw_exception_ex(NULL, 0, "Unserialization of '%s' is not allowed, unless
unserialization methods are implemented in a subclass",
ZSTR_VAL(Z_OBJCE_P(ZEND_THIS)->name));
+ zend_throw_exception_ex(NULL, 0, "Unserialization of '%pS' is not allowed, unless
unserialization methods are implemented in a subclass", Z_OBJCE_P(ZEND_THIS)->name);
RETURN_THROWS();
}