[php-src] master: [`%pS` migration] Use `%pS` in ext/phar/phar.c
| From: | Daniel Scherzer | Date: | Mon, 05 Oct 2026 06:53:04 +0000 |
| Subject: | [php-src] master: [`%pS` migration] Use `%pS` in ext/phar/phar.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141944@lists.php.net to get a copy of this message | ||
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-10-04T22:59:53-07:00
Commit: https://github.com/php/php-src/commit/7ae1cd5ccbb0c225ef06575cdd4f6557f3378652
Raw diff: https://github.com/php/php-src/commit/7ae1cd5ccbb0c225ef06575cdd4f6557f3378652.diff
[
%pS migration] Use %pS in ext/phar/phar.c
Changed paths:
M ext/phar/phar.c
Diff:
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index f64f27bac383..bee5fe796ebd 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -3215,7 +3215,7 @@ static zend_op_array *phar_compile_file(zend_file_handle *file_handle, int
type)
zend_file_handle f;
/* zip or tar-based phar */
- name = zend_strpprintf(4096, "phar://%s/%s", ZSTR_VAL(file_handle->filename),
".phar/stub.php");
+ name = zend_strpprintf(4096, "phar://%pS/%s", file_handle->filename,
".phar/stub.php");
zend_stream_init_filename_ex(&f, name);
if (SUCCESS == zend_stream_open_function(&f)) {
zend_string_release(f.filename);