Skip to content

Commit dcaf197

Browse files
[%pS migration] Use %pS in ext/phar/util.c
1 parent 040f648 commit dcaf197

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ext/phar/util.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ splitted:;
350350
}
351351
} else {
352352
if (zend_hash_exists(&(phar->manifest), test)) {
353-
ret = strpprintf(0, "phar://%s/%s", ZSTR_VAL(arch), ZSTR_VAL(test));
353+
ret = strpprintf(0, "phar://%pS/%pS", arch, test);
354354
zend_string_release_ex(test, false);
355355
zend_string_release_ex(arch, false);
356356
return ret;
@@ -359,7 +359,7 @@ splitted:;
359359
zend_string_release_ex(test, false);
360360
}
361361

362-
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));
362+
spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%pS/%s%c%s", arch, PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path));
363363
zend_string_release_ex(arch, false);
364364
ret = php_resolve_path(ZSTR_VAL(filename), ZSTR_LEN(filename), path);
365365
efree(path);

0 commit comments

Comments
 (0)