优化在 phar 模式下多个系统同时使用此组件时可能会造成的临时文件权限问题#2
Merged
walkor merged 3 commits intowebman-php:masterfrom Mar 28, 2024
Merged
Conversation
|
这个pr看起来解决方案不太完美,并且有点死循环的风险。 |
Author
|
报的是file_put_content权限错误,删除掉root权限生成的文件之后www权限的可以正常使用,如果root权限生成了部分文件那www全校的验证码就会部分可用。ubuntu系统,具体如何造成的不知道,但是我反复试了几遍之后root创建的www那边又可用了 |
Author
|
考虑过使用tempnam类的创建临时文件,但是考虑的到重复重启之类的可能造成创建大量无用临时文件就没用 |
added 2 commits
March 28, 2024 12:32
Author
修改为了判断是否存在runtime_path函数、使用webman的runtime目录来进行处理 |
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.
如运行多个 webman 项目时如果某个系统是运行在 root 用户模式下并且是最先运行的、则其他的运行在 www 用户模式下的系统使用验证码组件时就会出现权限问题