Repository navigation
调整平台证书默认下载目录及落盘方式,bump to v1.5.0 - #157
Merged
Merged
Conversation
flyerH
force-pushed
the
fix/cert-output-dir-permissions
branch
from
September 16, 2026 02:44
213c821 to
bd40626
Compare
Collaborator
|
对于 |
Contributor
Author
修改了一下,覆盖了低版本 |
Collaborator
|
|
Contributor
Author
这里用@为了不直接打印原始warning,打印标准化的日志,之前比较笼统 |
EmmetZC
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
-o时,默认输出目录改为当前用户专属、他人不可写的私有目录<临时目录>/wechatpay-<uid>/,在无ext-posix的环境(如 Windows)上,<uid>段取每次运行随机生成的串,此时目录逐次新建而不复用file_put_contents换成「独占创建临时文件 +rename原子替换」,不再跟随目标路径上的符号链接fclose返回值,避免磁盘空间不足等情形下产生内容残缺的证书文件兼容性影响
-o时,证书从<临时目录>/wechatpay_<序列号>.pem挪到<临时目录>/wechatpay-<uid>/wechatpay_<序列号>.pem,运行时会打印出完整路径。依赖旧路径的脚本需相应调整,或显式传入-o。rename以新 inode 替换旧文件,权限由umask决定,此前手工设置的 mode、属主/属组等不再保留。如有依赖请在每次下载后重设。0,现在返回1。原先依赖"这条命令永远成功"的 CI 流程会开始正确中断。bin/CertificateDownloader.php,其中调整过签名的方法均为private。src/下仅版本号常量变更。附带修复 CI
DownloadTest::testGet/testGetAsync在 PHP 7.2+ 的 job 上失败,与本次改动无关。guzzlehttp/uri-templatev1.0.6 修复了{+var}保留展开的 double pct-encoding 问题(guzzle/uri-template#18),%2F不再被二次编码成%252F。之前按未修复前的结果写死了assertNotEquals(9745acf),上游修好后该断言失败。v1.0.6要求 PHP^7.2.5,而本仓库支持php >=7.1.2,7.1 只能装到v0.2.0,没法靠提高依赖约束统一行为。现改为逐一比对预期串:{+var}的结果视guzzlehttp/uri-template版本而定,v1.0.6及以上保持原串,更早版本为双重编码。