Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
PocketMine-MP
/
src
/
console
下载当前目录
D
Dylan T.
Fixed PHP 8.5 issues reported by PHPStan
c8044175
创建于
2025年12月24日
历史提交
文件
最后提交记录
最后更新时间
ConsoleCommandSender.php
New rule: explode() limit parameter must be set
1 年前
ConsoleReader.php
Use PHP-CS-Fixer to enforce file header presence
3 年前
ConsoleReaderChildProcess.php
Fixed PHP 8.5 issues reported by PHPStan
4 个月前
ConsoleReaderChildProcessDaemon.php
Update PHPStan
6 个月前
ConsoleReaderChildProcessUtils.php
ConsoleReader: Use proc_open()'s socket support to send commands back to the main server process (#5273) Support for this was introduced in PHP 8.0, though not mentioned in any changelog: php/php-src#5777 This simplifies the subprocess handling considerably. However, there is a potential for problems if PHP generates any E_* errors, since these get written to STDOUT as well. To avoid error messages being treated as a command, a hash is attached to each IPC message, seeded with an incrementing counter. This prevents error messages causing command replays or unintended commands. Unfortunately, PHP doesn't support binding pipes other than stdin/stdout/stderr on Windows for the child process, so we have to use stdout for this. In the future, if it becomes possible, a dedicated pipe for the purpose should be introduced. We'd need something like php://fd/<number> to work on Windows.
1 年前