[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in Zend/zend_builtin_functions.c
| From: | Daniel Scherzer | Date: | Fri, 30 Oct 2026 01:10:34 +0000 |
| Subject: | [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in Zend/zend_builtin_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142977@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-10-29T17:58:18-07:00
Commit: https://github.com/php/php-src/commit/01dd5e368b8e9551721139f436a2e48763a74812
Raw diff: https://github.com/php/php-src/commit/01dd5e368b8e9551721139f436a2e48763a74812.diff
[
%pS migration] Use %pS in Zend/zend_builtin_functions.c
Changed paths:
M Zend/zend_builtin_functions.c
Diff:
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index ffd6e9b7fae7..ad2c0dd2009a 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -90,7 +90,7 @@ ZEND_FUNCTION(clone)
const zend_function *clone = ce->clone;
if (UNEXPECTED(zobj->handlers->clone_obj == NULL)) {
- zend_throw_error(NULL, "Trying to clone an uncloneable object of class %s",
ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Trying to clone an uncloneable object of class %pS",
ce->name);
RETURN_THROWS();
}
@@ -102,7 +102,7 @@ ZEND_FUNCTION(clone)
zend_object *cloned;
if (zend_hash_num_elements(with) > 0) {
if (UNEXPECTED(!zobj->handlers->clone_obj_with)) {
- zend_throw_error(NULL, "Cloning objects of class %s with updated properties is not
supported", ZSTR_VAL(ce->name));
+ zend_throw_error(NULL, "Cloning objects of class %pS with updated properties is not
supported", ce->name);
RETURN_THROWS();
}
@@ -1237,7 +1237,7 @@ ZEND_FUNCTION(class_alias)
RETURN_FALSE;
}
} else {
- zend_error(E_WARNING, "Class \"%s\" not found", ZSTR_VAL(class_name));
+ zend_error(E_WARNING, "Class \"%pS\" not found", class_name);
RETURN_FALSE;
}
}