[php-src] master: [`%pS` migration] Use `%pS` in ext/phar/util.c
| From: | Daniel Scherzer | Date: | Mon, 05 Oct 2026 06:53:11 +0000 |
| Subject: | [php-src] master: [`%pS` migration] Use `%pS` in ext/phar/util.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141948@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-10-04T22:59:54-07:00
Commit: https://github.com/php/php-src/commit/90a5c12dcb780247565f88399c14b2848f96e021
Raw diff: https://github.com/php/php-src/commit/90a5c12dcb780247565f88399c14b2848f96e021.diff
[
%pS migration] Use %pS in ext/phar/util.c
Changed paths:
M ext/phar/util.c
Diff:
diff --git a/ext/phar/util.c b/ext/phar/util.c
index 147ddcc91b9e..539b927657b3 100644
--- a/ext/phar/util.c
+++ b/ext/phar/util.c
@@ -350,7 +350,7 @@ splitted:;
}
} else {
if (zend_hash_exists(&(phar->manifest), test)) {
- ret = strpprintf(0, "phar://%s/%s", ZSTR_VAL(arch), ZSTR_VAL(test));
+ ret = strpprintf(0, "phar://%pS/%pS", arch, test);
zend_string_release_ex(test, false);
zend_string_release_ex(arch, false);
return ret;
@@ -359,7 +359,7 @@ splitted:;
zend_string_release_ex(test, false);
}
- spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%s/%s%c%s",
ZSTR_VAL(arch), PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path));
+ spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%pS/%s%c%s",
arch, PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path));
zend_string_release_ex(arch, false);
ret = php_resolve_path(ZSTR_VAL(filename), ZSTR_LEN(filename), path);
efree(path);