[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/standard/filestat.c
| From: | Daniel Scherzer | Date: | Sun, 01 Nov 2026 20:31:59 +0000 |
| Subject: | [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/standard/filestat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143177@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-11-01T12:30:50-08:00
Commit: https://github.com/php/php-src/commit/1589b65d5d9923a0b554ea9fc9522502383e7303
Raw diff: https://github.com/php/php-src/commit/1589b65d5d9923a0b554ea9fc9522502383e7303.diff
[
%pS migration] Use %pS in ext/standard/filestat.c
Changed paths:
M ext/standard/filestat.c
Diff:
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 56722ce5ca82..ebf7f5f28549 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -355,7 +355,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */
#else
if (group_str) {
if (php_get_gid_by_name(ZSTR_VAL(group_str), &gid) != SUCCESS) {
- php_error_docref(NULL, E_WARNING, "Unable to find gid for %s", ZSTR_VAL(group_str));
+ php_error_docref(NULL, E_WARNING, "Unable to find gid for %pS", group_str);
RETURN_FALSE;
}
} else {
@@ -493,7 +493,7 @@ static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */
if (user_str) {
if (php_get_uid_by_name(ZSTR_VAL(user_str), &uid) != SUCCESS) {
- php_error_docref(NULL, E_WARNING, "Unable to find uid for %s", ZSTR_VAL(user_str));
+ php_error_docref(NULL, E_WARNING, "Unable to find uid for %pS", user_str);
RETURN_FALSE;
}
} else {
@@ -808,7 +808,7 @@ PHPAPI void php_stat(zend_string *filename, int type, zval *return_value)
|| wrapper->wops->url_stat(wrapper, local, flags |
PHP_STREAM_URL_STAT_IGNORE_OPEN_BASEDIR, &ssb, NULL)) {
/* Error Occurred */
if (!IS_EXISTS_CHECK(type)) {
- php_error_docref(NULL, E_WARNING, "%sstat failed for %s", IS_LINK_OPERATION(type) ?
"L" : "", ZSTR_VAL(filename));
+ php_error_docref(NULL, E_WARNING, "%sstat failed for %pS", IS_LINK_OPERATION(type) ?
"L" : "", filename);
}
RETURN_FALSE;
}