[php-src] master: [`%pS` migration] Use `%pS` in Zend/zend_ast.c
| From: | Daniel Scherzer | Date: | Fri, 30 Oct 2026 01:10:31 +0000 |
| Subject: | [php-src] master: [`%pS` migration] Use `%pS` in Zend/zend_ast.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142974@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-10-29T17:58:17-07:00
Commit: https://github.com/php/php-src/commit/4be92aab67a530168a223ece308e85bc9b0c4f75
Raw diff: https://github.com/php/php-src/commit/4be92aab67a530168a223ece308e85bc9b0c4f75.diff
[
%pS migration] Use %pS in Zend/zend_ast.c
Changed paths:
M Zend/zend_ast.c
Diff:
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c
index e55a90001d2d..9b1006e9f5c1 100644
--- a/Zend/zend_ast.c
+++ b/Zend/zend_ast.c
@@ -1171,8 +1171,8 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
if (name) {
if (!zend_hash_add(args, name, &arg)) {
zend_throw_error(NULL,
- "Named parameter $%s overwrites previous argument",
- ZSTR_VAL(name));
+ "Named parameter $%pS overwrites previous argument",
+ name);
zend_array_destroy(args);
zval_ptr_dtor(result);
return FAILURE;
@@ -1259,7 +1259,7 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
}
if (!fptr) {
- zend_throw_error(NULL, "Call to undefined function %s()",
ZSTR_VAL(function_name));
+ zend_throw_error(NULL, "Call to undefined function %pS()", function_name);
return FAILURE;
}
@@ -1315,9 +1315,9 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
return FAILURE;
} else if (fptr->common.scope->ce_flags & ZEND_ACC_TRAIT) {
zend_error(E_DEPRECATED,
- "Calling static trait method %s::%s is deprecated, "
+ "Calling static trait method %pS::%pS is deprecated, "
"it should only be called on a class using the trait",
- ZSTR_VAL(fptr->common.scope->name), ZSTR_VAL(fptr->common.function_name));
+ fptr->common.scope->name, fptr->common.function_name);
if (EG(exception)) {
return FAILURE;
}