[php-src] master: [`%pS` migration] Use `%pS` in ext/phar/func_interceptors.c

From: Date: Mon, 05 Oct 2026 06:53:01 +0000
Subject: [php-src] master: [`%pS` migration] Use `%pS` in ext/phar/func_interceptors.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141943@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Date: 2026-10-04T22:56:53-07:00 Commit: https://github.com/php/php-src/commit/5974b8e4c5ab39fe5de46e9fa6f88de9785df81a Raw diff: https://github.com/php/php-src/commit/5974b8e4c5ab39fe5de46e9fa6f88de9785df81a.diff [%pS migration] Use %pS in ext/phar/func_interceptors.c Changed paths: M ext/phar/func_interceptors.c Diff: diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index f6e69f20035c..e4cf1933b797 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -57,9 +57,9 @@ PHP_FUNCTION(phar_opendir) /* {{{ */ zend_string *entry = phar_fix_filepath(filename, filename_len, true); if (ZSTR_VAL(entry)[0] == '/') { - spprintf(&name, 4096, "phar://%s%s", ZSTR_VAL(arch), ZSTR_VAL(entry)); + spprintf(&name, 4096, "phar://%pS%pS", arch, entry); } else { - spprintf(&name, 4096, "phar://%s/%s", ZSTR_VAL(arch), ZSTR_VAL(entry)); + spprintf(&name, 4096, "phar://%pS/%pS", arch, entry); } zend_string_release_ex(entry, false); zend_string_release_ex(arch, false); @@ -135,7 +135,7 @@ static zend_string* phar_get_name_for_relative_paths(zend_string *filename, bool ZSTR_VAL(entry), ZSTR_LEN(entry) ); } else { - name = strpprintf(4096, "phar://%s/%s", ZSTR_VAL(arch), ZSTR_VAL(entry)); + name = strpprintf(4096, "phar://%pS/%pS", arch, entry); } zend_string_release_ex(entry, false); }

« previous php.cvs (#141943) next »